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.