Computer Science, asked by Manishagandham, 11 months ago

Write a program to prompt the user for hours and rate per hour using input to compute 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() to convert the string to a number.

Answers

Answered by isac786
0

Answer:

hrs = input("Enter Hours:")

rate = input("Enter Rate:")

pay= float(hrs)*float(rate)

print (pay)

.............................................................

Explanation:

hrs=input("Enter Hour:")

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

pay=float(hrs)*float(rate)

print("Pay:", pay)

Similar questions