Question: Paycheck Calculator make a program that calculates a user's weekly gross and take-home pay. Console Paycheck Calculator Hours Worked:35 Hourly Pay Rate:14.50 Gross Pay:507.5 Tax
Paycheck Calculator
make a program that calculates a user's weekly gross and take-home pay.
Console
Paycheck Calculator
Hours Worked:35
Hourly Pay Rate:14.50
Gross Pay:507.5
Tax Rate:18%
Tax Amount:91.35
Take Home Pay:416.15
Specifications
1.Start a new project named PaycheckcalulatorApp.
2.Rename the .cpp file that contains the mai () function to main.cpp.
3.The formula for calculating gross pay is:
4.gross pay = hours worked * hourly rate
5.The formula for calculating tax amount is:
6.tax amount = gross pay * (tax rate / 100)
7.The formula for calculating take home pay is:
8.take home pay = gross pay - tax amount
9.The tax rate should be 18%, but the code should store the tax rate in a variable. That way, you can easily change the tax rate later, just by changing the value that's stored in the variable.
10.The program should accept decimal entries like 35.5 and 14.25.
11.The program should round the results to a maximum of two decimal places.
12.Assume the user will enter valid data.
13.Include a header and meaningful comments throughout your program. The header includes your first and last name, date program completed, and purpose of the program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
