Question: write a C++ program using struct..also use protype for each function You have been assigned to write a program that will create monthly payroll. There
write a C++ program using struct..also use protype for each function You have been assigned to write a program that will create monthly payroll. There will 2 files that the program will read. File #1: employee.txt (create your own file) Format: empID 5chars empName 20 chars SSN 9 chars payrate 6 chars Fil 2: hours.txt Format: emplD week# hWorked Schars 1 char (assume there are 4 months in a week) 2 chars (assume an employee cannot work more than 10 hours a day. This hours reflect daily hours. It means an employee can have more than I entry for a week The program will calculate the monthly payroll for all employees. Overtime will be considered for working more than 40 hours. Also, assume that 20% is deducted for the tax purposes. Calculate the gross and net pay for each employee. Your program will display all employees with their pertinent information, gross pay and net pay. write a C++ program using struct..also use protype for each function You have been assigned to write a program that will create monthly payroll. There will 2 files that the program will read. File #1: employee.txt (create your own file) Format: empID 5chars empName 20 chars SSN 9 chars payrate 6 chars Fil 2: hours.txt Format: emplD week# hWorked Schars 1 char (assume there are 4 months in a week) 2 chars (assume an employee cannot work more than 10 hours a day. This hours reflect daily hours. It means an employee can have more than I entry for a week The program will calculate the monthly payroll for all employees. Overtime will be considered for working more than 40 hours. Also, assume that 20% is deducted for the tax purposes. Calculate the gross and net pay for each employee. Your program will display all employees with their pertinent information, gross pay and net pay
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
