Menu

(Solved) : Payroll Write C Program Calculates Employee S Monthly Gross Pay Net Pay Program Ask User E Q34563989 . . .

(Payroll)

Write a C++ program that calculates an employee’s monthly grosspay and net

pay. The program should ask the user to enter:

His/her name. Store this value in a variable called

employeeName

.

The number of hours worked per month. Store this value in avariable called

hoursWorked

.

The hourly pay rate. Store this value in a variable called

hourlyPayRate.

Assume the Federal Tax Withholding Rate is 25% and the State TaxWithholding

Rate is 7%. Use named constants FEDERAL_TAX and STATE_TAX tostore the federal

withholding rate and state withholding rate, respectively.

Your program should then calculate and display:

the gross pay. Store this value in a variable called

grossPay

.

the federal tax deduction. Store this value in a variablecalled

federalTaxDeducation

.

the state tax deduction. Store this value in variable called

stateTaxDeduction

.

total deductions. This is the state and federal tax combined.Store this value

in a variable called

totatDeductions.

the employee’s net pay. Store this value in a variable callednetPay

Expert Answer


Answer to Payroll Write C Program Calculates Employee S Monthly Gross Pay Net Pay Program Ask User E Q34563989 . . .

OR