Professional Documents
Culture Documents
Pooja
Pooja
Submitted By
1
CERTIFICATE
Date: / /
Place: Banswada
2
ACKNOWLEDGEMENT
The success and final outcome of this project required a lot of guidance
and assistance from many people and I am extremely privileged to have
got this all along the completion of my project. All that I have done is only
due to such supervision and assistance and I would not forget to thank
them.
Components of SMS:
∙ Here the user can perform certain tasks like deletion of student
details, updation of the student details, display the student
details, sort the student details by id, email and phone, findthe
student details.
4
TABLE OF CONTENTS
1. Introduction...................................
1.1.Aim...........................................
1.2.Motivation.................................
1.3.Components.................................
1.4.Modulesof sms...........................
2. LiteratureSurvey...........................
5. Result…………………………….
6. Conclusion .........................................
7.References......................................
5
1.INTRODUCTION:
The student management system is a project in java is a
web based application to manage the record of students
in the school. The objective of the student management
system is to design a scheduling system for education
centre. This whole project is developed in Java
programming language. This is a simple project which
helps in easy communication among students, faculty
and parents. Here in this project, you can perform many
operations on the student details provided. Student
management system helps schools to store, manage and
distribute this information. It manages all the information
about students. The main purpose of this project is to
build an application program to reduce the manual work
for managing the student details.
1.1 AIM
1
To implement a student management system in which it
becomes easy to store and manage the student details and
easy way of communication among students, faculty and
parents. It provides the details of students in organized
way.
1.2 MOTIVATION
Student management system is designed in a scheduling way
for the education centre.
It is a easy way to store all the details of the students
appropriately And provides many operations which makes
more easy to obtain the details of the student.
Components of SMS:
∙ This project is based on a concept of taking student details.
∙ Here the user can perform certain tasks like deletion of
student details, updation of the student details, display the
student details, sort the student details by id, email and
phone, find the student details.∙It is implemented using
basic concepts of Java
2
∙ Update
∙ Sort
∙ Find
∙ Display
2. LITERATURE SURVEY
3
Classes and Objects are basic concepts of Object Oriented Programming
which revolve around the real life entities.
4
4. Interfaces(if any): A comma-separated list of interfaces
implemented by the class, if any, preceded by the keyword
implements. A class can implement more than one interface.
5. Body: The class body surrounded by braces, { }.
associated with the class with the given string name. We have to
Instance() method on this Class object returns new instance of the class
within the given string name.
6
4.IMPLEMENTATION
import java.util.*;
Comparator<Student> {
public Student()
7
this.email =
email; } public
void
setName(String
name) {
this.name =
name; } public
void
setPhone(String
phone) {
this.phone=null;
this.
pho
ne
=
pho
ne; }
public void setCity(String city) {
this.city = city;
} public
String
getPhon
e()
{ return
phone; }
pub
lic
int
get
Age
()
{ ret
urn
age;
}
8
public
int
getId()
{ retur
n id;
public String
getName()
{ return
name;
}
public String
getEmail()
{ return
email;
}
public
String
getCity()
{ return city;
}
public int compare(Student o1, Student o2) {
return o1.getId() - o2.getId();
} } public class
StudentManage
ment {
public static void main(String[] args)
{ int
choice,i,size,mob_serch_result,email_serch_result,name_serc
h_result,id,id1,age; String
name,city,email,phone,mob_serch,email_serch,update_search,choice_upda
te,update_search_email, name_serch;
9
String
name1,city1,email1,phone1,Update_choice,choice_update_for_phone,choic
e_update_for_email; Scanner sc = new Scanner(System.in);
HashMap< String, Integer >mapEmail=new HashMap<
String, Integer >(); HashMap< String, Integer
>mapPhone=new HashMap< String, Integer >();
HashMap< String, Integer >mapName=new HashMap<
String, Integer >();
ArrayList<Student> list = new ArrayList<Student>();
System.out.println("How many Student details you want to
Enter"); size=sc.nextInt() ;
for(i=0;i<size;i++)
{
System.out.println("\t\t\t\tEnter the "+(i+1)+" Student Details \t\t\t\t\
n");
System.out.println("Enter the name ");
name=sc.next();
System.out.println("Enter the Id ");
id=sc.nextInt();
System.out.println("Enter the
email "); email=sc.next();
System.out.println("Enter the MobNum ");
phone=sc.next();
System.out.println("Enter the age ");
age=sc.nextInt();
System.out.println("Enter the City ");
city=sc.next();
Student student=new Student(); student.setAge(age); student.setId(id);
student.setName(name); student.setCity(city); student.setPhone(phone);
student.setEmail(email); list.add(student); mapPhone.put(phone,i);
mapEmail.put(email,i); mapName.put(name,i);
}
for (Student s : list)
{
10
System.out.println("\nName:"+s.getName()+" Id:" +s.getId()+" Mobile
Num:" +s.getPhone()+" Email:" +s.getEmail()+" Age:" +s.getAge()+" City:"
+s.getCity());
}
System.out.println("Do u want to delete any Student?\n1.Yes\n2.No"); int
d,index=0; String delete_name; d=sc.nextInt(); if(d==1)
{
System.out.println("Enter name"); delete_name=sc.next();
for (Student s : list)
{
if(delete_name.equals(s.getName()))
{
list.remove(index);
System.out.println("Deleted Student"); break;
} index++;
}
}
while(true)
{ System.out.println("=======================================
================= ==========");
System.out.println("1.Display Student list");
System.out.println("2.To find Student details");
System.out.println("3.To update details");
System.out.println("4.Sort student list by Id");
System.out.println("5.Exit"); choice= sc.nextInt(); sc.nextLine();
switch(choice)
{
case 1:
Iterator<Student>itr=list.iterator(); while(itr.hasNext())
{
Student st = itr.next();
System.out.print(" Name: "+st.getName());
System.out.print(" ID: "+st.getId());
System.out.print(" phone: "+st.getPhone());
System.out.print(" email: "+st.getEmail());
System.out.print(" age: "+st.getAge());
System.out.println(" city: "+st.getCity());
11
} break;
case 2:
System.out.println("1.Find Student by name:");
System.out.println("2.Find Student by mobile num:");
System.out.println("3.Find Student by mail:"); int f; f=sc.nextInt();
switch(f) {
case 1:
System.out.println("Enter the name of Student "); name_serch=sc.next();
name_serch_result=mapName.get(name_serch);
Student stu_name_obj=(Student)list.get(name_serch_result);
System.out.println("Student Name: "+stu_name_obj.getName()+" ID :
"+stu_name_obj.getId()+" Mobile num : "+stu_name_obj.getPhone()+"
Email :
"+stu_name_obj.getEmail()+" Age : "+stu_name_obj.getAge()+" City :
"+stu_name_obj.getCity()); break; case 2:
System.out.println("Enter the mobile number of Student ");
mob_serch=sc.next();
mob_serch_result=mapPhone.get(mob_serch);
Student stu_phone_obj=(Student)list.get(mob_serch_result);
System.out.println("Student Name: "+stu_phone_obj.getName()+" ID:
"+stu_phone_obj.getId()+" Mobile num : "+stu_phone_obj.getPhone()+"
Email :
"+stu_phone_obj.getEmail()+" Age : "+stu_phone_obj.getAge()+" City :
"+stu_phone_obj.getCity()); break; case 3:
System.out.println("Enter the emailId of Student "); email_serch=sc.next();
email_serch_result=mapEmail.get(email_serch);
Student stu_email_obj=(Student)list.get(email_serch_result);
System.out.println("Employee Name : "+stu_email_obj.getName()+" ID :
"+stu_email_obj.getId()+" Mobile num: "+stu_email_obj.getPhone()+"
Email :
"+stu_email_obj.getEmail()+" Age : "+stu_email_obj.getAge()+" City :
"+stu_email_obj.getCity()); break; } break;
case 3:
System.out.println("\n1.To update PhoneNumber ");
System.out.println("\n2.To update Mail "); int u; u=sc.nextInt(); switch(u) {
12
case 1:
System.out.println("Enter the Old Mobile number ");
update_search=sc.next(); mob_serch_result=mapPhone.get(update_search);
Student stu_update_obj_phone=(Student)list.get(mob_serch_result);
System.out.println(" Name: "+stu_update_obj_phone.getName()+" ID :
"+stu_update_obj_phone.getId()+" Mobile num :
"+stu_update_obj_phone.getPhone()+" Email :
"+stu_update_obj_phone.getEmail()+" Age :
"+stu_update_obj_phone.getAge()+" City :
"+stu_update_obj_phone.getCity());
System.out.println("Press Y or y for Confirm and Update\tPress N or n for
Cancel"); choice_update=sc.next();
if(choice_update.equalsIgnoreCase("Y")||
choice_update.equalsIgnoreCase("y")) {
System.out.println("Enter the New MobNum "); phone1=sc.next();
stu_update_obj_phone.setPhone(phone1);
System.out.println("\t\t\t\tupdated entry is :\n");
mapPhone.put(phone1,mob_serch_result);
System.out.println(" Name: "+stu_update_obj_phone.getName()+" ID :
"+stu_update_obj_phone.getId()+" Mobile num :
"+stu_update_obj_phone.getPhone()+" Email :
"+stu_update_obj_phone.getEmail()+" Age :
"+stu_update_obj_phone.getAge()+" City :
"+stu_update_obj_phone.getCity());
} break; case 2:
System.out.println("Enter the old email "); update_search_email= sc.next();
email_serch_result=mapEmail.get(update_search_email);
Student stu_update_obj_email=(Student)list.get(email_serch_result);
System.out.println(" Name: "+stu_update_obj_email.getName()+" ID :
"+stu_update_obj_email.getId()+" Mobile num :
"+stu_update_obj_email.getPhone()+" Email :
"+stu_update_obj_email.getEmail()+" Age
: "+stu_update_obj_email.getAge()+" City :
"+stu_update_obj_email.getCity());
System.out.println("Press Y or y for Confirm and Update\tPress N or n for
Cancle"); choice_update=sc.next();
13
if(choice_update.equalsIgnoreCase("Y")||
choice_update.equalsIgnoreCase("y")) {
System.out.println("Enter the new email "); email1=sc.next();
stu_update_obj_email.setEmail(email1);
mapEmail.put(email1,email_serch_result);
System.out.println(" Name: "+stu_update_obj_email.getName()+" ID :
"+stu_update_obj_email.getId()+" Mobile num :
"+stu_update_obj_email.getPhone()+" Email :
"+stu_update_obj_email.getEmail()+" Age :
"+stu_update_obj_email.getAge()+" City :
"+stu_update_obj_email.getCity());
14
5.RESULT
15
16
17
6.CONCLUSION
The student management system is a java project developed for storing and
managing the student details.
The Student Management System had been developed in accordance to
university requirement.
The functional services provided made easy to perform various operations
on student details and obtain them.
7.REFERENCES
[1] https://www.javatpoint.com/java-localtime
18
[2] https://www.scribd.com/document/261937474/Student-
Management-System
[3] https://www.geeksforgeeks.org/classes-objects-java/
19