A company needs a program to calculate the gross salary to be paid to their employees each week. The program will receive the department's names the employee IDs hours worked and salary per hour. A report will be produced with the weekly salary for regular and overtme hours) for each employee. The report will also include a summary secton for the department listng the total regulars hours and overtme hours and the corresponding amounts based for those hours.
The requirements for performing the calculatons are as follows:
Defnitons:
You will enter a comment on the head secton with your name on it.
You will use a text box to get the department's name.
You will use text boxen to get:
Each department may have up to 3 employees.
A buttoo will generate a report - which will display on a separate page - including:
Another buttoo to clear previous entries and reset memory variables.
You will use at least one uoctoo for the salaries calculatons.
You will use a loop - in conjuncton with an arras - for the salaries calculatons.
The report will be produced using the Dynamic Web page creaton techniques using documeot.write statements) practced during recitatons and explained during lectures.
The report will produce accurate results whether the department may have ones two or three employees.
The variable names should be descriptve.
The format of the screen - and the format of the report - should be similar to those provided on the video example.
Additional Information:
Since the content of a text box - which is what the prompt ) functon generates - is going to be used in mathematcal operatonss use the functon parneIot() to ensure that the numeric input is treated as numeric data.
Syntax example: numericVariable = parneIot numericVariable)
Creatng a dsoamic webpage using document.write statements. See "Table of Equivalents" example on chapter 19 of the Fluency textbook:.