Question: You have to write a function to calculate tax, the sample output is : Filing Status (1) Single (2) Married (3) Head of Household (0)
Quit Program Please make selection: -8 Invalid choice, make a selection again: 6 Invalid choice, make a selection again: 4 Invalid choice, make a selection again: 1 Enter the annual income: 35000 Your tax rate is: 20 % You pay $7000.00 in taxes.
After taxes your net income is: $28000.00 When enter 1, it will calculate tax of a person who is single.
When enter 0, it will exit at once.
How can I solve this problem? When enter 1, Find single , when enter 2, calculate married. Can you show me some example?
Tax= (Income * Tax Rate) / 100 Net Income = Income - (Income * Tax Rate) / 100
You have to implement this program in C language and use a switch statement.