From 5f4079b493b233c00f1680aa948db58e41fa9552 Mon Sep 17 00:00:00 2001 From: cdez Date: Sun, 18 Sep 2022 20:42:13 -0700 Subject: [PATCH] Update Project_3.c --- PA03-0921/Project_3.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/PA03-0921/Project_3.c b/PA03-0921/Project_3.c index cffc203..85aa1d1 100644 --- a/PA03-0921/Project_3.c +++ b/PA03-0921/Project_3.c @@ -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 );