Requirements:

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:

  • Regular hours: hours worked that do not exceed 40 hours.
  • Overtme hours: hours worked above 40 hours.
  • Regular hours salary: Regular hours x hourly salary.
  • Overtme hours salary: Overtme hours x hourly salary x 1.x
  • Total employee salary: Regular hours salary + Overtme hours salary.

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:

  • Employee ID his/her initals)
  • Hours worked during the week.
  • Hourly salary

Each department may have up to 3 employees.

A buttoo will generate a report - which will display on a separate page - including:

  • The name of the department.
  • The Regular Salary and Overtme salary for each employee.
  • A summary secton with:
    • Department Regular Hours
    • Department Overtme Hours
    • Total Department Regular Salaries
    • Total Department Overtme Salaries
    • Total Department Salaries

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:.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.