Question: Write a program that generates an Employee Payroll Report. The input for the program consists of a collection of data containing the last name, hourly
Write a program that generates an Employee Payroll Report. The input for the program consists of a collection of data containing the last name, hourly pay rate, and the number of hours worked, for a set of employees. The output of the program is a report conforming to the sample layout found HERE.
Your program should perform the following tasks:
Repeatedly prompt the user to determine whether or not there is data pertaining to an employee to be input. Program should work for or more employees. If the user responds in the affirmative, the program prompts for each of the input data items for a single employee; the user responds in the negative when there is no more employee data to be processed. ALTERNATIVE: If you prefer, you may create a data file and input data from this file into your program.
For each employee you are to compute the number of overtime hours worked by that employee, the salary, and the overtime pay. An employee earns straight time for the first forty hours of work, timeandahalf for up to the first hours in excess of hours, and doubletime for any additional hours.
One report detail line should be generated for each employee. The report should include heading lines, column headings, and "footer" line as shown in the layout document.
Data: EMPLOYEE PAYROLL REPORT SPRING
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
