(Solved) : Using C Payroll Write Program Calculates Employee S Monthly Gross Pay Net Pay Program Ask Q43998145 . . .
Using C++
(Payroll) Write a program thatcalculates an employee’s monthly gross pay and net pay. The programshould ask the user to enter:
- His/her name. Store this value in a variable calledemployeeName.
- The number of hours worked per month. Store this value in avariable called hoursWorked.
- The hourly pay rate. Store this value in a variable calledhourlyPayRate.
Assume the Federal Tax Withholding Rate is 25% and the State TaxWithholding Rate is 7%. Use named constants FEDERAL_TAX andSTATE_TAX to store the federal withholding rate and statewithholding rate, respectively.
Your program should then calculate and display:
- the gross pay. Store this value in a variable calledgrossPay.
- the federal tax deduction. Store this value in a variablecalled federalTaxDeducation.
- the state tax deduction. Store this value in variable calledstateTaxDeduction.
- total deductions. This is the state and federal tax combined.Store this value in a variable calledtotatDeductions.
- the employee’s net pay. Store this value in a variable callednetPay.
Expert Answer
Answer to Using C++ (Payroll) Write a program that calculates an employee’s monthly gross pay and net pay. The program should as…
OR