0% found this document useful (0 votes)
2 views

Report Assignment java

The assignment involves creating a vehicle management program for a showroom, including functions for loading, adding, updating, deleting, and searching vehicles, as well as displaying them sorted by price. It requires the use of object-oriented programming principles and specific data structures, with a focus on error handling and user interface design. The project emphasizes code quality and modularity, with a target of 50 lines of code for most functions.

Uploaded by

phast28904
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Report Assignment java

The assignment involves creating a vehicle management program for a showroom, including functions for loading, adding, updating, deleting, and searching vehicles, as well as displaying them sorted by price. It requires the use of object-oriented programming principles and specific data structures, with a focus on error handling and user interface design. The project emphasizes code quality and modularity, with a target of 50 lines of code for most functions.

Uploaded by

phast28904
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Report: Vehicle Management Assignment

Assignment Overview:

The goal of this assignment is to build a management program for a vehicle showroom. The program
should have the following basic functions:

-Load vehicle data from a file

-Add new vehicles

-Update existing vehicles by ID

-Delete vehicles by ID

-Search for vehicles by name or ID

-Display the list of all vehicles, both unsorted and sorted by price in descending order

-Store the updated vehicle data to a file

The showroom contains two types of vehicles - cars and motorbikes. Cars have properties like ID, name,
color, price, brand, type, and year of manufacture. Motorbikes have properties like ID, name, color, price,
brand, speed, and whether a license is required. Motorbikes also have a special "makeSound" function
that prints "Tin tin tin".

The assignment specifies the requirements, constraints, and expected behavior for each of the required
functions. It also mentions that the lecturer will only explain the requirements once, during the first slot
of the assignment.

Report Findings:

+ Data Structures and OOP Design:

The assignment requires building the appropriate data structures and utilizing OOP principles like
classes, abstract classes, and interfaces.

It specifies that only one collection should be used to store all the vehicles.

+ File I/O:

The program must load all vehicle data from a file named "vehicles.txt" during initialization.

Updated vehicle data must be stored back to the same file upon program exit.

CRUD Operations:

The program must implement the basic Create, Read, Update, and Delete (CRUD) operations for
managing vehicles.

Add new vehicles, update existing vehicles, delete vehicles by ID, and search for vehicles by name or ID.

Sorting and Displaying Vehicles:


The program must display the list of all vehicles, both unsorted and sorted by price in descending order.

For motorbikes, the "makeSound" function must be called when displaying the sorted list.

+ Error Handling:

The program must handle all errors and not allow interruptions to the program flow.

+ User Interface:

The program should display a menu and allow the user to select options.

After each task, the program should return to the main menu and wait for the user's next selection.

Code Organization and Quality:

The assignment specifies a target of 50 lines of code (LOC) for most of the required functions.

The code should be well-organized, maintainable, and adhere to best practices.

 Conclusion:

This assignment focuses on building a comprehensive vehicle management system using object-oriented
programming principles. It requires the implementation of various CRUD operations, file I/O, sorting, and
error handling. The assignment also emphasizes code quality, modularity, and adherence to the specified
requirements and constraints.

Team : - Phan Đình Thuận HE186246 : Function 0,2,6

- Nguyễn Tùng Dương SE180585: Function 5,6


- Mai Hồng Phát DE190909: Function 3,4,7.

You might also like