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, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
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, 09.02.2021 05:40
question
Mathematics, 09.02.2021 05:50
question
Mathematics, 09.02.2021 05:50