subject
Computers and Technology, 24.01.2020 21:31 gm2

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, or w)

- 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: $40.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, $0.25 for each mile driven above the 100 mile per day limit.

- code 'w' (weekly) base charge: $350.00 for each week. if the car is kept less than 7 days, then $350.00 is still charged. for rental periods more than 7 days, the base charge is $350 per 7 days and $70 for any days making a fraction of a week(i. e. 9 days means $350 + 2* $70 = $490). mileage charge: no charge this rental comes with unlimited miles

after calculating the bill, use formatted output to output the total bill with 2 decimal places of precision. use an appropriate phrase for the output

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:50
Type the correct answer in the box. spell all words correctly. which view of report creation allows you to customize the report before the database program creates it? creating a report in allows you to customize the report before the database program creates it. pl asap
Answers: 1
question
Computers and Technology, 22.06.2019 09:50
What is a rush associated with alcohol?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
You know the right answer?
Write a python script that will compute and display information for a company which rents vehicles t...
Questions
question
Mathematics, 27.09.2020 18:01
question
Mathematics, 27.09.2020 18:01
question
Mathematics, 27.09.2020 18:01
Questions on the website: 13722359