hi can tou answer this questions in python code please and please make ot privet don't share the same code to others ple
Posted: Mon May 09, 2022 7:04 am
hi can tou answer this questions in python code please
and please make ot privet don't share the same code to others please if you can.
Assignment Specifications 1. The program 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. 2. The program will repeatedly prompt the user to enter the following five items for a given customer (in the specified order): a. The customer's classification code (a character) b. The customer's name c. The number of days the vehicle was rented (an integer) d. The vehicle's odometer reading at the start of the rental period (an integer) e. The vehicle's odometer reading at the end of the rental period (an integer) It will then process that customer's information and store it in a list. It will stop asking for more information when the user enters "Q" (or "q") instead of a classification code. A summary of each customer's rental information, including the cost, will then be displayed. 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 kilometres driven. The program will recognise both upper case and lower case letters for the
classification codes. The codes are detailed below: Code 'B' (budget) base charge: 540.00 for each day mileage charge: $0.25 for each kilometre driven Code 'D' (daily) base charge: $60.00 for each day mileage charge: no charge if the average number of kilometres driven per day is 100 kilometres or less; otherwise, $0.25 for each kilometre driven above the 100 kilometre per day limit. Code "W" (weekly) 1 base charge: $190.00 for each week (or fraction of a week) mileage charge: no charge if the average number of kilometres driven per week is 900 kilometres or less; $100.00 per week if the average number of kilometres driven per week exceeds 900 kilometres but does not exceed 1500 kilometres; otherwise, $200.00 per week plus $0.25 for each kilometre driven above the 1500 kilometre per week limit. The amount billed to the customer is the sum of the base charge and the mileage charge. 4. The program will compute the number of kilometres 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 kilometre. 5. For each customer, the program will display a summary with the following information: 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
e. The number of kilometres driven during the rental period f. The amount of money billed to the customer for the rental period All output will be appropriately labeled and formatted. The number of kilometres 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). 6. Your program must save the summary generated to a text file called "summary.txt" 7. The program will detect, report and recover from invalid classification codes. When an invalid classification code is detected, the program will display an error message. It will display the summary for that customer, with the amount billed to the customer set to zero. 8. The program will not assume that all other user inputs are valid and correct. That is, the program will check the number of days and odometer readings for validity.
Organisation Of Your Report Section 1: Problem Analysis: In this section, you should define the problem and break it down to show what the input, outputs and process are. Section 2. Solution Design: In this section you should provide a Pseudo-code or a flowchart to explain your algorithm and the logic that will drive your Python code. Section 3: Implementation: In this section, you should list your complete Python Code. Make sure that your code is optimised for speed and efficiency. Do not forget to include comments which explain what your code is doing. Section 4: Evaluation: In this section, you should include a screenshot of your program's output, based on the sample input provided. Your output should be as close as possible to the solution provided in Figure 1. Section 5: Self-reflection: In this section, you should reflect on what you have learned in this project, and outline the challenges that you have faced while working on this project, and how you overcame them.
and please make ot privet don't share the same code to others please if you can.
Assignment Specifications 1. The program 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. 2. The program will repeatedly prompt the user to enter the following five items for a given customer (in the specified order): a. The customer's classification code (a character) b. The customer's name c. The number of days the vehicle was rented (an integer) d. The vehicle's odometer reading at the start of the rental period (an integer) e. The vehicle's odometer reading at the end of the rental period (an integer) It will then process that customer's information and store it in a list. It will stop asking for more information when the user enters "Q" (or "q") instead of a classification code. A summary of each customer's rental information, including the cost, will then be displayed. 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 kilometres driven. The program will recognise both upper case and lower case letters for the
classification codes. The codes are detailed below: Code 'B' (budget) base charge: 540.00 for each day mileage charge: $0.25 for each kilometre driven Code 'D' (daily) base charge: $60.00 for each day mileage charge: no charge if the average number of kilometres driven per day is 100 kilometres or less; otherwise, $0.25 for each kilometre driven above the 100 kilometre per day limit. Code "W" (weekly) 1 base charge: $190.00 for each week (or fraction of a week) mileage charge: no charge if the average number of kilometres driven per week is 900 kilometres or less; $100.00 per week if the average number of kilometres driven per week exceeds 900 kilometres but does not exceed 1500 kilometres; otherwise, $200.00 per week plus $0.25 for each kilometre driven above the 1500 kilometre per week limit. The amount billed to the customer is the sum of the base charge and the mileage charge. 4. The program will compute the number of kilometres 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 kilometre. 5. For each customer, the program will display a summary with the following information: 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
e. The number of kilometres driven during the rental period f. The amount of money billed to the customer for the rental period All output will be appropriately labeled and formatted. The number of kilometres 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). 6. Your program must save the summary generated to a text file called "summary.txt" 7. The program will detect, report and recover from invalid classification codes. When an invalid classification code is detected, the program will display an error message. It will display the summary for that customer, with the amount billed to the customer set to zero. 8. The program will not assume that all other user inputs are valid and correct. That is, the program will check the number of days and odometer readings for validity.
Organisation Of Your Report Section 1: Problem Analysis: In this section, you should define the problem and break it down to show what the input, outputs and process are. Section 2. Solution Design: In this section you should provide a Pseudo-code or a flowchart to explain your algorithm and the logic that will drive your Python code. Section 3: Implementation: In this section, you should list your complete Python Code. Make sure that your code is optimised for speed and efficiency. Do not forget to include comments which explain what your code is doing. Section 4: Evaluation: In this section, you should include a screenshot of your program's output, based on the sample input provided. Your output should be as close as possible to the solution provided in Figure 1. Section 5: Self-reflection: In this section, you should reflect on what you have learned in this project, and outline the challenges that you have faced while working on this project, and how you overcame them.