Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.18 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.18 KB

Student Database Management System

This is a simple Java program implementing a Student Database Management System. It allows users to perform various operations like adding students, viewing students, searching for a specific student, calculating the average marks of all students, and exiting the program.

Features

  • Add Student: Users can add a new student to the database by providing their name, roll number, age, and marks.
  • View Students: Users can view the details of all students currently stored in the database.
  • Search Students: Users can search for a specific student by entering their roll number.
  • Calculate Average Marks: Users can calculate the average marks of all students stored in the database.
  • Exit: Users can exit the program.

How to Use

  1. Run the program.
  2. Choose an option from the menu by entering the corresponding number.
  3. Follow the prompts to perform the selected operation.
  4. Repeat steps 2-3 until you choose to exit the program.

Note

  • This program uses a HashMap to store student objects, with roll numbers as keys for easy retrieval.
  • Input validation is minimal in this program. It assumes valid input from the user.