Skip to content

Latest commit

 

History

History
132 lines (121 loc) · 2.71 KB

README.md

File metadata and controls

132 lines (121 loc) · 2.71 KB

Student-Database-System

I have attempted to create a system that provides basic functionality to manage student data, including the following :

First compile the code : javac Project.java

Second run the code : java Project

Adding Student:

Users can add student records by providing the student's name, roll number, age, and marks.

1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 1
Enter ur name: Pintu
Enter ur rollno: 1
Enter yr age: 19
Enter yr marks: 99
Student added successsfuly
1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 1
Enter ur name: Radha
Enter ur rollno: 2
Enter yr age: 18
Enter yr marks: 95
Student added successsfuly

View Student List:

The system allows users to view a list of all the students and their corresponding details that have been added to the system.

1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 2
List of student: 
Name : Pintu
rollno : 1
age : 19
Marks : 99
Name : Radha
rollno : 2
age : 18
Marks : 95

Search Student:

Users can search for a specific student by providing their roll number and the system will display their details if they exist in the database.

1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 3
Enter yr rollno: 👉2
Name : Radha
rollno : 2
age : 18
Marks : 95
--------(...)----|||||||||

Calculate Average Marks:

The system can calculate the average marks of all the students stored in the database.

1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 4
Average marks : 97.0

Exit from System:

Users have the option to exit from the system when they are done performing their tasks.

1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 5
pintu@adsl-ull-236-0 Student-Database-System %

Error Handling:

Implement error handling when a student is not found during a search operation.

1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 1
Enter ur name: Pintu
Enter ur rollno: 1
Enter yr age: 19
Enter yr marks: 99
Student added successsfuly
1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 1
Enter ur name: Radha
Enter ur rollno: 2
Enter yr age: 18
Enter yr marks: 95
Student added successsfuly
1. Add Student 
2. View Student 
3. Search Student  
4. Calculate Average Marks 
5. Exit 
Enter ur choice : 3
Enter yr rollno: 👉3
Student is not found 👹