Question: Write a C++ payroll program. Your program needs an employee id, name, hourly wage, hours worked (no overtime). The name can be held in two
Write a C++ payroll program. Your program needs an employee id, name, hourly wage, hours worked (no overtime). The name can be held in two strings (first name and last name) or as a single string (name) Social security withholds at 0.625, tax rate is 0.17. Calculate gross pay, withholdings, net pay. Print a neatly formatted report showing employee id, name, wage, hours, gross pay, tax withheld, and net pay. each colum should have a heading You are to use fixed, setw, setprecision, showpoint or other functions as necessary. You can use only one employee but print about five 1ines to show that the report is neatly printed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
