C language Science Lab 6D Objectives To learn to code compil

C++ language

Science Lab #6D Objectives To learn to code, compile and run a program containing two or more functions Assignment Develop a top-down design and write a program utilizing at least three functions to calculate payroll information and to print out a pay report for a ee based on Employer\'s Tax Guide (tables 1 and 2). Note: A employ withholding allowance is sometimes referred to as an exemption. The program should read the data from an input file, output records with error to an error file along with appropriate error message, and results to an output file. Input Validation is required. The pay should be calculated as follows Gross Amount: hourly wage Xhours worked for the first 40 hours. Any hours above 40 are paid at 1.5 of the regular hourly rate. An example: hours 45 and rate 3$10. Current earnings S40 x 10 (5 x 1.5 x 10) FICA Tax: 5.65 of the gross amount Federal Income Tax Withheld: subtract $73.08 from the current earnings for each withholding exemption to get Adjusted Weekly income and use Table 1 or Table 2, depending on marital status Net Amount: Gross Amount FICA taxes] Federa ncome Tax Withheld] Table 1 Federal In come tax Withheld for a Single person paid weekly Adjusted Weekly Income Income Tax Withheld to $721 Over $721 to$7,510 $93.60 +28% of amount over S721 S7510 2,167.16 +35% of amount over $7,510 Table Federal Income tax withheld for a Married Person paid weekly Adjusted Weekly Income Income Tax Withheld $0 to $1515 S18715+15% of amount over S1515 Over $1515 to$7,624 Over $7,624 $2,020.42 30% of amount over $7,624 Input Employ name, hourly wage, hours worked, number of exemptions, and marital status. ee Al Clark 38 45.5 Joyce Itin 120 77 Vahid Hamid 25 Melody Jung 27 60.6 oahn Garcia 25 Vera Moroz 23 72 Robert 19.85 40 nnes Mark Armstrong 25 23 Ashton Williams 15.69 -6 Angela Klein 54.32 6 168.5 36.5 2 Jerry Smith Leslie McHenry 68 95.63 Morgan Stock 72 99 Nick Lee Mary Jones 45 75.36 2 Output To an output fi nd ID, hours worked, hourly rate of pay, amount of each deduction, gross and e: employee nam e a net amounts. Output valid data to an output file. Output errors to an error file BE SURE TO INCLUDE ADEQUATE ERROR CHECKING IN YOUR PROGRAMAND ERROR DATA WHEN YOU RUN THE PROGRAM TO DEMONSTRATE ERROR CHECKING. Turn in Top down design with parameters, program listing and program output. Turn in all data files used in the program

Solution

C++ language ----->

sample code example :

Explanation ---->

C++ language Science Lab #6D Objectives To learn to code, compile and run a program containing two or more functions Assignment Develop a top-down design and wr

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site