1.

2.3 Write a program to prompt the user for hours and rate per hour using input tocompute gross pay. Use 35 hours and a rate of 2.75 per hour to test the program(the pay should be 96.25). You should use input to read a string and float() toconvert the string to a number. Do not worry about error checking or bad userdata​

Answer»

ANSWER:

#compute gross pay BYE hours and rate per hour

HRS=input("Enter Hour:")

rate=input("Eenter Rate per Hour:")

pay=float(hrs)*float(rate)

print("Pay:", pay)



Discussion

No Comment Found