0% found this document useful (0 votes)
3 views3 pages

Vehicle Management Program Overview

The document outlines the specifications for a vehicle management program that manages vehicle information in a showroom. Key functions include adding, updating, deleting, and searching for vehicles, as well as displaying a list sorted by price and saving/loading data to/from a binary file. The program is to be developed using an Object-Oriented Programming model.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Vehicle Management Program Overview

The document outlines the specifications for a vehicle management program that manages vehicle information in a showroom. Key functions include adding, updating, deleting, and searching for vehicles, as well as displaying a list sorted by price and saving/loading data to/from a binary file. The program is to be developed using an Object-Oriented Programming model.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment

Title
The Vehicle Management - Read and Write File.
Background
- Your family wants to develop a program to manage the vehicles at your showroom. Every vehicles
has properties as: id, name, color, price, brand, type, productYear..
- This management program needs to have primary functions such as: displaying Vehicles information,
search Vehicle, add Vehicle, edit Vehicle,…
- Vehicle information is stored in binary file ([Link]).
- Let's build your idea based OOP model.
Program Specifications
Build a vehicle management program. With the following basic functions:
0. Build your idea based OOP model- 2points
1. Adding new vehicle- 1point
2. Checking exits Vehicle- 1 point
3. Updating vehicle- 1point
4. Deleting vehicle- 1point
5. Searching vehicle by name- 1 point
6. Displaying vehicle list descending by price- 1point
7. Saving Vehicle to file- 1 point
8. Load data to list vehicle- 1 point
Others Quit
Features:
This system contains the following functions:
Display a menu and ask users to select an option.

– Function 1: Add new vehicle


o Require to input vehicle information including: id, name, color, price, brand, type,
productYear.
o Remember to the constraints must be checked.
o Add the new vehicle and show the result of the add: success or fail.
– Function 2: Check to exist Vehicle
o The system will check the id that is stored in the file [Link].
o A message “Exist Vehicle” should be displayed in the case the Id exists in the [Link] file.
o Otherwise, the message “No Vehicle Found!” will display.

- Function 3: Update vehicle


o Require enter the vehicle’s id.
o If vehicle does not exist, the notification “Vehicle does not exist”. Otherwise, user can start
input new information of vehicle and update.
o If new information is blank, then not change old information.
o Then system must print out the result of the updating.
o After updating, the program returns to the main screen.

- Function 4: Delete vehicle


o User can delete any vehicle in the showroom by id.
o Before the delete system must show confirm message.
o Show the result of the delete: success or fail.
o After delete, the program returns to the main screen
- Function 5: Search vehicle
o Create a submenu that allows the user search by name.
o User input the text want to search.
o The system will search in the show room, and return all vehicle that has name contain the
search string.
o Show result list.
- Function 6: Display vehicle list
Show all (descending by price_vehicle)
o The system will show this list of vehicle in the show room.
o Show result list: all information of vehicle (descending by price).
- Function 7: Save data to file
o Write a list of the Vehicle’s information to the file ([Link]).
- Function 8: Load data from file to vehicle list
o Load data from file into vehicle list

You might also like