菜鸟JAVA大神
Add a new car to the system when it is purchased, noting the purchase price and date of purchase. A new car can only be purchased if there are currently less than 20 cars for sale.
Sell a car to a customer, noting the sale price and date of sale. The car is marked as sold. Its details are kept in the system for use in sales reports
Display a list of all cars for sale sorted by date of purchase.
Display a sales report showing all car sales. Show the purchase price, sale price. Show the total profit at the end of the report.
Reads a list of cars from a text file at start up. The cars are stored in a suitable data structure in memory.
Saves all cars to a text file just before the program exits。
Note, the storage in the text file must be true object persistence. Objects will be read from the file at the program commencement and stored prior to program termination. All operations on objects (cars) must be done in memory.
At least one Java class to control the operation of the system.
At least one Java class to store data as objects
根据以上信息来写一个report