Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Design and implement a C++ program that asks user for their: A. Name (First & Surname); B. Employee ID; C. Gender (M/F); D. Age; and

Design and implement a C++ program that asks user for their: A. Name (First & Surname); B. Employee ID; C. Gender (M/F); D. Age; and E. Number of hours worked in a week. And then calculates the annual income (52 weeks) and the income tax due on the annual income. The calculations of the annual income and the income tax are to be based on the guidance provided below. Program Specifications: 1. Prompt the user to enter the required information, A-E above 2. All input should be validated wherever necessary. For instance, the input for age has to be only in integers. 3. Calculate the annual income and the associated tax and display in a presentable manner in dollars. 4. Repeat steps 1 and 2 until the user enters “Q”. Income Calculation A rate of $10 per hour applies for a 40-hour normal week or any number of hours worked below 40. Any hours worked above 40 hours is considered as overtime. For every 5 hours above this normal 40-hour week, overtime pay rate factor of 1.5, i.e. time and half overtime pay will apply and a pay rate factor of 2 for anything above 45 hours, ie double time. Tax Calculations

Age < 55

Male :

0% tax if annual income < 10 000,

10% tax if 10 000 ≤ annual income ≤ 50 000

20% tax if 50 000 < annual income ≤ 100 000

30% tax if annual income > 100 000

Female : 0% tax if annual income < 12 000,

10% tax if 12 000 ≤ annual income ≤ 55 000

20% tax if 55 000 < annual income ≤ 100 000

30% tax if annual income > 100 000

55 ≤ Age < 80

Male and Female:

0% tax if annual income < 20 000,

10% tax if 20 000 ≤ annual income ≤ 70 000

20% tax if 70 000 < annual income ≤ 150 000

30% tax if annual income > 150 000

Age > = 80

Male and Female:

0% tax on all income (No Tax)

Step by Step Solution

3.58 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

Program include using namespace std double CalculateIncomedouble hourwrokedinweek double income 0 if ... 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_2

Step: 3

blur-text-image_3

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

Computer Networks

Authors: Andrew S. Tanenbaum, David J. Wetherall

5th edition

132126958, 978-0132126953

Students explore these related Programming questions