Individual prject 3 Solution

Individual Project 3
Write a script that calculates the gross pay for each of three employees. The company pays “one and a half times” for all hours worked in excess of 40 hours. You’re entered the name of each employee, the number of hours each employee worked last week, and the hourly rate of each employee. Your script should input this information for each employee, determine the employee’s gross pay and output HTNL5 text that displays the employee’s gross pay. Use prompt dialogs to input the data.
A sample is shown below. Suppose your input data are: Name Hours worked Hourly rate David 35 12.5 Raquel 40 13.5 Jeff 48 10.3
Your output is:
David gross pay: $437.5 Raquel gross pay: $540 Jeff gross pay: $535.6
Powered by