Question: Use Python 3 or higher In Boilerville, a bicycle can be rented between 8:00 am until 9:00 pm. The charge for each bike is $1.75

Use Python 3 or higher
In Boilerville, a bicycle can be rented between 8:00 am until 9:00 pm. The charge for each bike is $1.75 per hour from 8:00 am until 3:30 pm. From 3:30 pm until 9:00 pm the rate is $2.50 an hour. These rates are per bike, and they do not rent bikes before 8:00 am or after 9:00 pm. Partial hours are prorated. Define a function named q50 that accepts the number of bicycles (an integer), a starting time (string) and ending time (string) and calculates the total rental fee. Assume that the starting and ending times are in 24hour format, meaning that the string "08:00 would indicate 8 am and the string "16:30 would be 4:30 pm Some example calculations: # Bikes Start Time End Time Total Rent 08:30 11:15 09:00 17:00 18:30 20:10 16.0 44.82 46.08 2 NOTE: the q50 function should return the total rate as a Float value with 2 decimal places; it should not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
