Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This option allows the user to edit the details of a car. Update should be recorded in the file called cars.txt. First, the chassis
This option allows the user to edit the details of a car. Update should be recorded in the file called cars.txt. First, the chassis number must be entered by the user to retrieve the record. Once the record is retrieved, the user should enter the required information for the field he wants to edit. Once all information is entered, the program updates them and display appropriate message. 4. Add maintenance details: This option allows the user to enter the maintenance details of a car using the fields specified in the maintenance.txt described above. The details of this option are crucial for calculating daily profit and revenue. For example, when calculating the profit you should consider this maintenance cost price. 5. Display available cars for sales: This option displays the total number of available cars for sale. All details of a car record except the quantity and buying price must be displayed with a proper formatting. The result must be sorted by model year from older to newer model. 6. Display information about a specific car: This option asks the user for a chassis number and displays all details of that car. 7. Display cars of a certain Make: This option asks the user for a make and displays all cars of that make. Car records must be sorted by buying price from low to high. 8. Monthly report: This option should display the following information in appropriate format. Monthly sales amount Monthly revenue (i) (ii) (iii) Average daily sales and profit considering all months 30 days. (iv) Total number of cars sold-out in a specific month (v) Total number of cars available for sales in a specific month 9. Exit: Your program should be always running until the user close it with this option. If the user inputs an invalid option, the program should display an appropriate error message and inform the user to enter a valid option. Guidelines
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started