Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python 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

please use pythonimage text in transcribed

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 q5) 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 print it

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

What is IUPAC system? Name organic compounds using IUPAC system.

Answered: 1 week ago

Question

What happens when carbonate and hydrogen react with carbonate?

Answered: 1 week ago