Question: Write code to complete the calculatePay function. It takes in the number of hours worked and an hourly pay rate. If the hours worked are
Write code to complete the calculatePay function. It takes in the number of hours worked and an hourly pay rate. If the hours worked are less than it should just return the hours times the hourly pay. If more than hours were worked, the person should earn normal pay for hours and times the normal pay for the hours over So if someone worked hours, at $ per hour they would receive
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
