Question: Use c++. thank you Assignment Plan and code a program utilizing at least three functions to solve the following problem to calculate payroll information for
Use c++. thank you

Assignment Plan and code a program utilizing at least three functions to solve the following problem to calculate payroll information for Natural Oak and Pine Furniture Company. Now that we have the ability to handle errors, can process data that falls into different categories, and the ability to process more than one set of data during one program run, let's incorporate this into a new program for Natural Oak and Pine Furniture Company Develop a top-down design and write a program to determine payroll information for all employees at Natural Oak and Pine Furniture Company. (This will expand the program created for Lab 2A) All data will be input from a file Payln.Txt (See below).Develop a subprogram for each-task involved in this problem. Use value and reference parameters for passing all data between modules, Determine the total hours worked by each employee during the week. Calculate each employees total pay based on the following scale of hours worked 0 through 40 hours more than 40 through 60 hours more than 60 through 80 hours regular pay 1 1/2 pay double pay Determine deductions (state withholding, federal withholding, union dues, and hospitalization) for each employee (as calculated in Lab 2A). Determine the gross pay (before deductions) and net pay (after deductions) Output to a new file--PayOut.Txt: 3 employee initials, total hours worked, pay rate, the amount of each deduction (federal withholding, state withholding, union dues, and hospitalization), gross pay, and net pay Input 3 employee initials, 7 numbers (representing the hours worked during 7 days), and the employee's hourly rate of pay Error check data input from the file (by the input module). Create the data file below using your text editor or Notepad Data File ABC 8.0 8.0 8.0 8.0 8.0 0.00.0 8.75 DEF 10.0 10.0 10.0 10.0 10.0 0.0 0.0 9.75 GHI 8.010.0 6.0 10.0 9.0 10.0 12.0 10.00 JKL 0.0 0.0 5.0 6.07.08.06.08.75 MNO 8.0 POR 10.0 10.0 8.0 10.0 6.0 3.0 2.0 9.75 STU 9.011.5 5.5 7.5 9.5 2.5 0.011.50 VWX 25.0 0.0 0.0 8.57.55.5 0.0 12.50 XYZ 10.0 10.0 10.0 10.0 10.0 0.0 0.05.00 AAA 0.0 0.00.025.0 1.0 0.0 0.0 15.75 8.0 8.0 8.0 8.0 8.0 80.0 8.00 Output To an output file: 3 initials, total hours worked, hourly rate of pay, amount of each of 4 deductions (federal withholding, state withholding, union dues, hospitalization), gross pay, net pay. Output valid data to PayOut.Txt Output errors to an error file Turn in Top down design with parameters, program listing and program output Turn in all data files used in the program. Program documentation and first lines in the output file should include: //Last Name, First Name //Class Section Number, Day, Time //Lab Number and Assignment Due Date Assignment Plan and code a program utilizing at least three functions to solve the following problem to calculate payroll information for Natural Oak and Pine Furniture Company. Now that we have the ability to handle errors, can process data that falls into different categories, and the ability to process more than one set of data during one program run, let's incorporate this into a new program for Natural Oak and Pine Furniture Company Develop a top-down design and write a program to determine payroll information for all employees at Natural Oak and Pine Furniture Company. (This will expand the program created for Lab 2A) All data will be input from a file Payln.Txt (See below).Develop a subprogram for each-task involved in this problem. Use value and reference parameters for passing all data between modules, Determine the total hours worked by each employee during the week. Calculate each employees total pay based on the following scale of hours worked 0 through 40 hours more than 40 through 60 hours more than 60 through 80 hours regular pay 1 1/2 pay double pay Determine deductions (state withholding, federal withholding, union dues, and hospitalization) for each employee (as calculated in Lab 2A). Determine the gross pay (before deductions) and net pay (after deductions) Output to a new file--PayOut.Txt: 3 employee initials, total hours worked, pay rate, the amount of each deduction (federal withholding, state withholding, union dues, and hospitalization), gross pay, and net pay Input 3 employee initials, 7 numbers (representing the hours worked during 7 days), and the employee's hourly rate of pay Error check data input from the file (by the input module). Create the data file below using your text editor or Notepad Data File ABC 8.0 8.0 8.0 8.0 8.0 0.00.0 8.75 DEF 10.0 10.0 10.0 10.0 10.0 0.0 0.0 9.75 GHI 8.010.0 6.0 10.0 9.0 10.0 12.0 10.00 JKL 0.0 0.0 5.0 6.07.08.06.08.75 MNO 8.0 POR 10.0 10.0 8.0 10.0 6.0 3.0 2.0 9.75 STU 9.011.5 5.5 7.5 9.5 2.5 0.011.50 VWX 25.0 0.0 0.0 8.57.55.5 0.0 12.50 XYZ 10.0 10.0 10.0 10.0 10.0 0.0 0.05.00 AAA 0.0 0.00.025.0 1.0 0.0 0.0 15.75 8.0 8.0 8.0 8.0 8.0 80.0 8.00 Output To an output file: 3 initials, total hours worked, hourly rate of pay, amount of each of 4 deductions (federal withholding, state withholding, union dues, hospitalization), gross pay, net pay. Output valid data to PayOut.Txt Output errors to an error file Turn in Top down design with parameters, program listing and program output Turn in all data files used in the program. Program documentation and first lines in the output file should include: //Last Name, First Name //Class Section Number, Day, Time //Lab Number and Assignment Due Date
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
