STUDENT MANAGEMENT SYSTEM
Project Report
Developer Arman
Roll No 1250577031
College Pt. J.L.N. Government College
Subject OOP Using Java
Submitted for Academic Purpose
Introduction
The Student Management System is a simple Java console-based project developed using Object Oriented
Programming concepts. The project allows users to add student records, display all students, search students by
roll number, and calculate average marks. The project demonstrates the use of classes, objects, encapsulation,
ArrayList collection, loops, methods, and user input handling in Java.
Objectives
• To understand Object Oriented Programming concepts in Java.
• To implement classes and objects in a practical project.
• To perform CRUD-like operations using ArrayList.
• To practice user interaction using Scanner class.
• To calculate and display student performance data.
Features of the Project
• Add Student Record
• Display All Students
• Search Student by Roll Number
• Calculate Average Marks
• User-Friendly Menu Driven Program
Java Source Code
// Developer: Arman
// Roll No: 1250577031
// College: Pt. J.L.N. Government College
// Subject: OOP Using Java
import [Link];
import [Link];
class himanshu017 {
private static ArrayList<Student> list = new ArrayList<>();
private static Scanner sc = new Scanner([Link]);
public static void main(String[] args) {
[Link]("--- STUDENT MANAGEMENT SYSTEM ---");
while (true) {
[Link]("\[Link] [Link] [Link] [Link] [Link]");
[Link]("Choice: ");
int choice = [Link]();
if (choice == 5) break;
switch (choice) {
case 1: add(); break;
case 2: show(); break;
case 3: find(); break;
case 4: avg(); break;
}
}
}
static void add() {
[Link]();
[Link]("Name: "); String n = [Link]();
[Link]("Roll: "); int r = [Link]();
[Link]("Marks: "); double m = [Link]();
[Link](new Student(n, r, m));
}
static void show() {
if ([Link]()) [Link]("Empty!");
else for (Student s : list) [Link](s);
}
static void find() {
[Link]("Roll: "); int r = [Link]();
for (Student s : list) {
if ([Link]() == r) {
[Link](s);
return;
}
}
[Link]("Not found!");
}
static void avg() {
if ([Link]()) return;
double sum = 0;
for (Student s : list) sum += [Link]();
[Link]("Average: %.2f\n", (sum / [Link]()));
}
}
class Student {
private String name;
private int rollNumber;
private double marks;
public Student(String name, int rollNumber, double marks) {
[Link] = name;
[Link] = rollNumber;
[Link] = marks;
}
public int getRollNumber() { return rollNumber; }
public double getMarks() { return marks; }
@Override
public String toString() {
return "Roll: " + rollNumber + " | Name: " + name + " | Marks: " + marks;
}
}
Conclusion
This project successfully demonstrates the implementation of Object Oriented Programming concepts using Java.
The Student Management System provides a simple and effective way to manage student records and perform
basic operations. It improves understanding of Java collections, methods, classes, and user interaction.