Skip to content

isp-cluj/isp-lab-6-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implement the following exercises

Exercise 1

Create a Java program that simulates a simple student grade management system using a list and a custom class. The system should be able to store a student's name, ID, and their grades for multiple subjects (use a HashMap<String, Integer>, grade by subject name). It should also be able to perform the following operations:

  1. Add a student to the list.
  2. Add student grades.
  3. Remove a student from the list.
  4. Update a student's information.
  5. Calculate the average grade of a student.
  6. Display the list of students.

Add minimal unit tests for the first 4 operations.

Exercise 2

Create a Java program that simulates a unique vehicle registry system using a Set and a custom class. The system should be able to store a vehicle's VIN (Vehicle Identification Number), license plate, make, model, and year. Since the VIN is a unique identifier for each vehicle, the system should not allow duplicate entries based on the VIN (hint: equals() and hashCode()). It should be able to perform the following operations:

  1. Add a vehicle to the registry (if it doesn't already exist).
  2. Remove a vehicle from the registry using the VIN.
  3. Check if a vehicle with a given VIN is in the registry.
  4. Display the list of vehicles in the registry.

Add minimal unit tests for the first 3 operations.

Exercise 3

Exercise 1 image

Given the UML class diagram above, implement the corresponding Java program. The application's interface should be implemented as a console based menu. Read the notes from the diagram to understand the requirements.

Note 1: Constructors and setter\getter methods are not represented in the diagram but can\should be implemented."

Note 2: You can add any extra methods if required.

Note 3: Implement unit tests for the main operations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

Generated from isp-cluj/isp-lab-6