Question: Objectives: Design an algorithm and write a C++ program that calculates the federal income tax. The user inputs a number that represents his/her status based
Objectives: Design an algorithm and write a C++ program that calculates the federal income tax. The user inputs a number that represents his/her status based on the following table: User's input Status Tax Single 22% married filing jointly 3 married filing separately 20% head of the household 18% 1 2 16% 4 The user also inputs his/her income, and the program calculates and outputs the tax based on the status as illustrated in the above table. Sample Output 1: Welcome to the Federal Tax Calculator Enter the status as follow Enter 1 for single Enter 2 for: married filing jointly Enter 3 for: married filing separately Enter & for: head of the household Your status: 1 Enter the income: $45000 sec Your tax is $9900 Sample Output 2: Welcome to the Federal Tax Calculator Enter the status as follow Enter 1 for: single Enter 2 for: married filing Jointly Enter 3 for: married filing separately Enter 4 for: head of the household Your status: 2 Enter the income: $80000 veceseve Your tax is $12800
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
