Write a JavaScript program that prompts for an employee name, employee no, rate of pay and hours worked, and computes the total pay for the employee. If the hours worked is greater than 40 hours, compute by using 1.5 times regular rate for the extra hours. For example, if one works for 50 hours and the rate paid is RM10.00/hour, the total pay should be RM550.00.
Include screenshots that show the output of each code for working hours < 40 hours, = 40 hours, and > 40 hours. Sample window shown on Figure 1.
1
Expert's answer
2019-01-14T08:37:59-0500
Dear BARBIE, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment