Question: Write code to complete the calculatepay function. It takes in a number of hours worked and an hourly puy. If the hours worked is less

 Write code to complete the calculatepay function. It takes in a

Write code to complete the calculatepay function. It takes in a number of hours worked and an hourly puy. If the hours worked is less than 40 , it ahould just return the heurs mes tha hourly pay. Il more than 40 hours were workod, the person should earn nonmal pay for 40 hours and 1.5 times the nomal pay for the hours over 40 . 50 if semeone vorked 50 heurs. at $18 per haur they would recieve 4018+(($040)15)1.5 det ealealatetay(bours, houriypay) * Your oode here - main part of progran II princ( oaleulatebay(30, is) i print ( ealoulatebay (40,12), print ( ealeulateDay (30,18) ) printe caleulateray (60,20)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!