Create a program to compute the fee for parking in a garage for a number of hours. The program should: 1. Prompt the user for how many hours parked 2. Calculate the fee based on the following: a. $2.50/hour b. minimum fee is $6.00 c. maximum fee is $20.00 3. Print the result python

Respuesta :

Answer:

The ans will be given in the python script below. A picture of the answer is also attached

Explanation:

print("Welcome To Garage Parking Fee Calculator")

hours = float(input("Type the number of hours parked :  "))

#fee per hour

rate = 2.40

#multiply rate per hour by the number of hours inputted

price = rate * hours

if price < 6:

   price = 6

if price > 20:

   price = 20

print("Parking fee is:  $", +price)      

Ver imagen olaseye