Skip to content

ilyaas17/Java_StudentDB-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Student Database Management System

Overview

This Java program implements a basic Student Database Management System. It allows users to add students, view the database, search for a student by roll number, calculate the average marks of all students, and exit the program.

Usage

  1. Clone the repository or download the Main.java file.
  2. Compile the code using a Java compiler:
    javac Main.java
  3. Run the compiled code:
    java Main

Functionality

  • Add Student (Choice 1): Adds a new student to the database with information such as name, roll number, age, and marks.
  • View Database (Choice 2): Displays the details of all students in the database.
  • Search Student (Choice 3): Searches for a student based on the provided roll number.
  • Calculate Average Marks (Choice 4): Computes and displays the average marks of all students in the database.
  • Exit Loop (Choice 5): Exits the program.

Usage Instructions

  1. Choose an option by entering the corresponding number.
  2. Follow the prompts to input the required information.

Example

1. Add Student :
2. View Database :
3. Search Student (Input roll number) :
4. Calculate Average Marks :
5. Exit Loop

Enter your choice : 1
Enter student name : John Doe
Enter roll number : 101
Enter age : 20
Enter marks : 85.5
Student added successfully!

1. Add Student :
2. View Database :
3. Search Student (Input roll number) :
4. Calculate Average Marks :
5. Exit Loop

Enter your choice : 2
************LIST************
Student Details:
Name: John Doe
Roll Number: 101
Age: 20
Marks: 85.5
*****************************

1. Add Student :
2. View Database :
3. Search Student (Input roll number) :
4. Calculate Average Marks :
5. Exit Loop

Enter your choice : 4
Average marks is 85.5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages