wavemose
5/23/2018 - 8:01 PM

PFE_chp2_ex3_compute pay

#Exercise 3: Write a program to prompt the user for hours and rate per hour to compute gross pay.
#Python for Everybody: Exploring Data in Python 3 (Kindle Locations 566-567). Kindle Edition. 

#Enter Hours: 35
#Enter Rate: 2.75
#Pay: 96.25

inp = input('Enter Hours: ')
hours = float(inp)
inp = input('Enter Rate: ')
rate = float(inp)
pay = hours * rate
print('Pay:', pay)