Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

DESCRIBE six government-sponsored benefits.

Answered: 1 week ago

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago