<reponame>mahasahyoun/python-for-everybody
"""
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. Do not worry about error checking or bad user data.
"""

# Get inputs as strings
strHrs = input("Enter Hours:")
strRate = input("Enter Rate:")

# Convert inputs from string to number
floatHrs = float(strHrs)
floatRate= float(strRate)

# Compute gross pay
grossPay = floatHrs * floatRate

print("Pay:", grossPay)

"""
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. Do not worry about error checking or bad user data.
"""

# Get inputs as strings
strHrs = input("Enter Hours:")
strRate = input("Enter Rate:")

# Convert inputs from string to number
floatHrs = float(strHrs)
floatRate= float(strRate)

# Compute gross pay
grossPay = floatHrs * floatRate

print("Pay:", grossPay)
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. Do not worry about error checking or bad user data. # Get inputs as strings # Convert inputs from string to number # Compute gross pay