Develop a JavaScript program that will determine the gross pay for each of three employees. The company pays “straight time” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee, determine the employee’s gross pay and output XHTML text that displays the employee's gross pay. Use prompt dialogs to input the data
Output:
Employee1 Gross Wage is: 360
Employee2 Gross Wage is: 350
Employee3 Gross Wage is: 375
Click Refresh(F5) or reload to run this script again
need an explanation for this answer? contact us directly to get an explanation for this answer