0% found this document useful (0 votes)
4 views2 pages

Group

The document outlines contributions from three individuals to a student record management system project. Irshad developed the student class and main management functionality, Shahab implemented methods for adding student records with duplication checks, and Ahmed created methods for searching students by ID. Together, they designed a system that efficiently manages student data using an ArrayList and handles exceptions for duplicate entries.

Uploaded by

s24adit103
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)
4 views2 pages

Group

The document outlines contributions from three individuals to a student record management system project. Irshad developed the student class and main management functionality, Shahab implemented methods for adding student records with duplication checks, and Ahmed created methods for searching students by ID. Together, they designed a system that efficiently manages student data using an ArrayList and handles exceptions for duplicate entries.

Uploaded by

s24adit103
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
You are on page 1/ 2

Group contribution

This project implements a simple student record management system using an


arraylist to store student data.

1.Irshad’s contribution
 First of all I have created a student class it has for instance variable id ,age ,course.
 It has a constructor student (id ,name ,age ,course) to initialize a new student object
 It has a display _info method to print a students information to console
 It has custom exception class to handle the case where a student with a the same id is
attempted to be added twice. It provides a more specific error message then a generic
exception.
 “studentRecordManagement” this is main class. It has Arraylist name ,student to store
all student object.
 “Scanner” a scanner object to read user input from console.
 It uses a while( true ) loop to continuously display the menu until the user choses to
exit.
 It has a switch statement handle the users choice.

2.Shahab’s contribution
_________________________________________________________________________

Add method will be used in student data .

Here we will take an input for id.

Checking for duplication:

If a student with same id already exists. If it finds a match, it prevents adding a duplicate by showing a
exception message.

Student details

If the id has unique you will be asked to enter the students name, age and the course they are enrolled
in.

Create the record

Once you provide all the details, a new student record is made with that information.

Adding to the list

This record is then stored in a list ,similar to a collection of folders where all student in formation is kept.

Confirmation Message:
If everything goes smoothly, you will see a message saying “Student record add successful”.

3.Ahmed’s contribution
___________________________________________________________________________

 1: search student method:


 Prompts the user to enter a student ID.
 Uses scanner. next int () to read the ID and scanner .next line () to handle the newline character left
by next int.
 Search calls find student by id (id) to locate the student.
 Output: if found, calls display info () on the student.
 If not found, prints “student with ID [id] not found.”

Findstudentbyid Method:
 1.Iterate: Loops through the students list.
 2.Compare: checks if a student’s id matches the input id.
 Return: If a match is found, returns the student object. If no match, return null.

You might also like