Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a python script that will compute and display information for a company which rents vehicles to its customers. For a specified customer, the program
Write a python script that will compute and display information for a company which rents vehicles to its customers. For a specified customer, the program will compute and display the amount of money charged for that customer's vehicle rental after prompting the user to enter the following four items for a given customer in the specified order) The customer's classification code (a character either B, D,) The number of days the vehicle was rented (an integer) The vehicle's odometer reading at the start of the rental period (an integer) The vehicle's odometer reading at the end of the rental period (an integer) The program will compute the amount of money that the customer will be billed, based on the customer's classification code, number of days in the rental period, and number of miles driven. The program will recognize both upper case and lower case letters for the classification codes. Code 'B' (budget) base charge: S40.00 for each day mileage charge: $0.25 for each mile driven Code D' (daily) base charge: $60.00 for each day mileage charge: no charge if the average number of miles driven per day is 100 miles or less; otherwise, S0.25 for each mile driven above the 100 mile per day limit
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started