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)
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)
Comments
Leave a comment