Modified Project 5 File, Added Project 6 Files
+- Project 5 File ++ Project 6 Files (Utils and Main)
This commit is contained in:
parent
8651123e1e
commit
5119f73add
14 changed files with 3021 additions and 39 deletions
50
PA06-1019/Arizona_Tax_Utility.h
Normal file
50
PA06-1019/Arizona_Tax_Utility.h
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// Creation of Arizona_Tax_Utility.h
|
||||
#ifndef ARIZONA_TAX_UTILITY_H
|
||||
#define ARIZONA_TAX_UTILITY_H
|
||||
|
||||
// Header Files
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "StandardConstants.h"
|
||||
|
||||
// Global Constants
|
||||
// AZ taxes
|
||||
// AZ tax Baseline RATE
|
||||
//static const double AZ_TAX_BASELINE_RATE = 0.0259;
|
||||
#define AZ_TAX_BASELINE_RATE 0.0259
|
||||
// AZ tax Baseline LIMIT
|
||||
//static const double AZ_TAX_BASELINE_LIMIT = 27808.5;
|
||||
#define AZ_TAX_BASELINE_LIMIT 27808.5
|
||||
// AZ tax First bracket RATE
|
||||
//static const double AZ_TAX_FIRST_BRACKET_RATE = 0.0334;
|
||||
#define AZ_TAX_FIRST_BRACKET_RATE 0.0334
|
||||
// AZ tax First bracket LIMIT
|
||||
//static const double AZ_TAX_FIRST_BRACKET_LIMIT = 55615.5;
|
||||
#define AZ_TAX_FIRST_BRACKET_LIMIT 55615.5
|
||||
// AZ tax Second bracket RATE
|
||||
//static const double AZ_TAX_SECOND_BRACKET_RATE = 0.0417;
|
||||
#define AZ_TAX_SECOND_BRACKET_RATE 0.0417
|
||||
// AZ tax Second bracket LIMIT
|
||||
//static const double AZ_TAX_SECOND_BRACKET_LIMIT = 166843.5;
|
||||
#define AZ_TAX_SECOND_BRACKET_LIMIT 166843.5
|
||||
// AZ tax MAX bracket RATE
|
||||
//static const double AZ_TAX_MAX_RATE = 0.045;
|
||||
#define AZ_TAX_MAX_RATE 0.045
|
||||
|
||||
// Function Prototypes
|
||||
|
||||
/*
|
||||
Name: calculateArizonaTax
|
||||
Process: Calculates Arizona Tax
|
||||
Function input/parameters: adjustedIncome
|
||||
Function output/parameters: none
|
||||
Function output/returned: totalAZTax
|
||||
Device input/keyboard: none
|
||||
Device output/monitor: none
|
||||
Dependencies: none
|
||||
*/
|
||||
double calculateArizonaTax(double adjustedIncome);
|
||||
|
||||
// end Arizona_Tax_Utility.h
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue