Design and implement a C++ program that asks user for their: A. Name (First & Surname); B.
Question:
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)