Update Project_3.c

This commit is contained in:
Charles Descamps 2022-09-18 20:42:13 -07:00
parent 987e3aa584
commit 5f4079b493

View file

@ -42,11 +42,10 @@ int main()
// TODO: Write program as specified
// show title
// function: printString, printEndline(s)
// initialize variables/functions
double totalIncome, taxPayed, contributionToIRA, adjustedIncome;
double totalIncome, contributionToIRA, adjustedIncome;
double minTaxFederal, maxTaxFederal, minTaxArizona, maxTaxArizona;
double taxSSN, taxMC, minTaxTotal, maxTaxTotal;
double maxIncome, minIncome;
@ -55,13 +54,9 @@ int main()
// get user input
// section title
printString( "Please provide your information below.\n" );
// conduct computations
// show results
// display results
@ -107,7 +102,7 @@ int main()
// function: printStringJustified, printString, printCharacter,
// printEndline
printString( PIPE_SPACE );
printStringJustified( "Effective tax rate ", DATA_NAME_WIDTH - 1, "LEFT" );
printStringJustified( "Effective Tax Rate ", DATA_NAME_WIDTH - 1, "LEFT" );
printCharacter( PIPE );
printStringJustified( "%", UNIT_WIDTH, "CENTER" );
printCharacter( PIPE );
@ -126,7 +121,7 @@ int main()
// function: printStringJustified, printString, printCharacter,
// printEndline
printString( PIPE_SPACE );
printStringJustified( "Total tax payed ", DATA_NAME_WIDTH - 1, "LEFT" );
printStringJustified( "Tax To Be Payed ", DATA_NAME_WIDTH - 1, "LEFT" );
printCharacter( PIPE );
printStringJustified( "$", UNIT_WIDTH, "CENTER" );
printCharacter( PIPE );
@ -142,7 +137,7 @@ int main()
printEndline();
printString( PIPE_SPACE );
printStringJustified( "Income after Tax ", DATA_NAME_WIDTH - 1, "LEFT" );
printStringJustified( "Income After Tax ", DATA_NAME_WIDTH - 1, "LEFT" );
printCharacter( PIPE );
printStringJustified( "$", UNIT_WIDTH, "CENTER" );
printCharacter( PIPE );