subject
Engineering, 23.01.2020 21:31 cicilee49

Cse 231 fall 2019 project #2 3. 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. this assignment focuses on the design, implementation and testing of a python program which uses control structures to solve the problem described below. it is worth 20 points (2% of course grade) and must be completed no later than 11: 59 pm on monday, september 16. code 'b' (budget) assignment overview (leaming objectives) this assignment will give you more experience on the use of: • integers (int) • conditionals • iteration • input/output base charge: $40.00 for cach day mileage charge: $0.25 for each mile driven code 'd' (daily) base charge: $60.00 for each day assignment specifications mileage charge: no charge of 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. the program will compute and display information for a company which rent 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. code 'w' (weekly) base charge: $190.00 for each week (or fraction of a week) 1. the program should start by asking the user if he wants to continue. the answer is 'y' for yes or 'n' for no. you can check the value with boolean expressions such as answer 'y mileage charge: no charge if the average number of miles driven per week is 900 miles or less; $100.00 per week if the average number of miles driven per week exceeds 900 miles but does not exceed 1500 miles, otherwise, $200.00 per week plus $0.25 for each mile driven above the 1500 mile per week limit. answery the basic structure of the main loop is the amount billed to the customer is the sum of the base charge and the mileage charge. prompt to see if the user wants to continue while the value is "y": all your other code goes here prompt to see if the user wants to continue 4. the program will compute the number of miles driven by the customer during the rental period. the odometer readings are taken from an odometer which has six digits and records tenths of a mile. 5. for each customer, the program will display a summary with the following information: 2. it will then continue to prompt the user to enter the following four items for a given customer (in the specified order): rented an intental period an integer) a the customer's classification code (a character) b. the number of days the vehicle was rented an integer) c. the vehicle's odometer reading at the start of the rental period (an integer) d. the vehicle's odometer reading at the end of the rental period an integer) a. the customer's classification code b. the number of days the vehicle was rented c. the vehicle's odometer reading at the start of the rental period d. the vehicle's odometer reading at the end of the rental period c. the number of miles driven during the rental period f. the amount of money billed to the customer for the rental period it will then process that customer information and display the results. at the end, the program should ask the user if he wants to process another request and it will keep asking until the user enter 0. all output will be appropriately labeled and formatted. the number of miles driven will be rounded to one fractional digit. the amount of money billed will be displayed with a dollar sign and will be rounded to two fractional digits (for example, $125.99 or $43.87). note that we do not have the ability yet to fine tune the output so if cents end in zero that final zero will not be

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:10
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
question
Engineering, 04.07.2019 18:20
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
question
Engineering, 04.07.2019 18:20
What is the heat treatment of metals? what is the benefit of it? why and how it's useful? answer in details, do not write by hand.
Answers: 3
You know the right answer?
Cse 231 fall 2019 project #2 3. the program will compute the amount of money that the customer will...
Questions