Question: Payroll Processing program Requirements: A company needs a program to calculate the gross salary to be paid to their employees each week. The program will

Payroll Processing program Requirements: A company needs a program to calculate the gross salary to be paid to their employees each week. The program will receive the departments names the employee IDs hours worked and salary per hour. A report will be produced with the weekly salary for regular and overtime hours) for each employee. The report will also include a summary section for the department listing the total regulars hours and overtime hours and the corresponding amounts based for those hours. The requirements for performing the calculations are as follows:

? Definitions:

? Regular hours: hours worked that do not exceed 40 hours.

? Overtime hours: hours worked above 40 hours.

? Regular hours salary: Regular hours x hourly salary.

? Over time hours salary: Overtime hours x hourly salary x 1.5

? Total employee salary: Regular hours salary + Overtime hours salary.

? You will use a text box to get the departments name.

? You will use text box to get:

? Employee ID (his/her initials)

? Hours worked during the week.

? Hourly salary

? Each department may have up to 3 employees.

? A bit too will generate a report which will display on a separate page - including

The name of the department.

? The Regular Salary and Overtime salary for each employee.

? A summary section with:

? Department Regular Hours

? Department Overtime Hours

? Total Department Regular Salaries

? Total Department Overtime Salaries

? Total Department Salaries

? Another button to clear previous entries and reset memory variables.

? You will use at least one function for the salaries calculations.

? You will use a loop - in conjunction with an array - for the salaries calculations.

? The report will be produced using the Dynamic Web page creaton techniques ( using documeot.write statements)

? The report will produce accurate results whether the department may have ones two or three employees.

? The variable names should be descriptive.

Additional Information:

? Since the content of a text box - which is what the prompt( ) function generates - is going to be used in mathematical operations use the function parselnt() to ensure that the numeric input is treated as numeric data.

Syntax example: numericVariable = parselnt(numericVariable)

? Creatng a dsoamic webpage using document.write statements.

? The format of the screen and the format of the report - should be similar to

Payroll Processing program Requirements: A company needs a program to calculate thegross salary to be paid to their employees each week. The program

Payroll Processing Report Generator Department: Accounting ID Hours worked Hourly Salary Employee 1: JK Employee 2: MR Employee 3: AS 50 30 30 20 70 10 ProcessClear

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!