Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Definition A bicycle shop, caled Gal Bicycle Rentals, rents bicycles by the day at different rates throughout the year according to the season (See

image text in transcribed

image text in transcribed

image text in transcribed

Problem Definition A bicycle shop, caled Gal Bicycle Rentals, rents bicycles by the day at different rates throughout the year according to the season (See Figure 1). The shop gives a 25% discount if the rental period is greater than 7 days. Renters must also pay OMR 20 returnable deposit for each bicycle rented. Write a program to input the season and the number of days of rental, and then calculate the total charge that includes the deposit and print a bill for each bicycle rental order (See Figure 2). Your program should validate the input data and give appropriate messages for invalid data (See Figures 2.b and 2.c). Only the described four season values are accepted, and the number of days should be a positive number. Your program should print the current date as the date of the order in the generated bill (Tip: use the appropriate function from the datetime module of the python standard library)

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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions