Computers and Technology
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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:40, almaga1979orfvwo
5. illustrate how fine-line inventory classification can be used with product and market segments. what are the benefits and considerations when classifying inventory by product, market, and product/market?
Answers: 2
image
Computers and Technology, 22.06.2019 16:30, aryal191
Primary tech skills are skills that are necessary for success in online education
Answers: 3
image
Computers and Technology, 23.06.2019 06:30, arguellesjavier15
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
image
Computers and Technology, 23.06.2019 20:10, banna01man
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
Do you know the correct answer?
Write a python script that will compute and display information for a company which rents vehicles t...

Questions in other subjects:

Konu
Mathematics, 24.03.2021 20:00
Konu
Spanish, 24.03.2021 20:00
Konu
Biology, 24.03.2021 20:00