Answer to Question #182748 in Python for Muhammad

Question #182748

Develop a flowchart that will read in employee’s total weekly

hours worked and rate of pay. Determine the gross weekly pay

by using the formula,

gross weekly pay= total weekly hours worked

*rate of pay


But, if the hours is more than 40, the formula is,

gross weekly pay = (40*rate of pay) + (1.5* (total

weekly hours worked-40) *rate of pay)


1
Expert's answer
2021-04-18T23:19:25-0400
hours = float(input("Enter Hours:"))
rate = float(input("Enter the Rate:"))


if hours <= 40:
 	print( hours  * rate)
elif hours > 40:
	print(40* rate + (hours-40)*1.5*rate)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS