You are on page 1of 25

TELANGANA UNIVERSITY

SRNK GOVT. DEGREE COLLEGE, BANSWADA KAMAREDDY


(NAAC ACCREDITED WITH ‘B+’ GRADE)

Jignasa Student study Project


On
“Payment Billing System”

Submitted By

DEPARTMENT OF COMPUTER SCIENCE

1
CERTIFICATE

This is to certify that P. AKSHAY, M.POOJA,G.SAI KRISHNA,


K.KEERTHANA, MAHVISH FATHIMA & G.BABITHA studying in B.Sc. Computer
Science (Optional) – final year (Semester- VI) has been completed the Project Report
on“Student Management System” as Per the requirement of syllabus and this record
contain very good work and completed by themselves in academic year 2021-2022.

Date: / /
Place: Banswada

In charge Head of Department

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.

I respect and thank to the Mr.Syed Younus Ali, for providing me an


opportunity to do the project work and giving us all support and
guidance which made me complete the project duly. I am extremely
thankful to him for providing such a nice support and guidance, although
he had busy schedule managing the corporate affairs.

I am thankful to and fortunate enough to get constant encouragement,


support and guidance from all Teaching staffs of Department of computer
science which helped us in successfully completing our project work.
Also, I would like to extend our sincere esteems to all staff in laboratory
for their timely support.
ABSTRACT
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
sysem 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.

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, findthe
student details.

∙ It is implemented using basic concepts of Java

Modules used in SMS are deletion of the student, display the


student, sort the student, update the student, find the student.

Language used: JAVA

Concepts in JAVA- Classes, Interfaces, Collections.

4
TABLE OF CONTENTS

1. Introduction...................................

1.1.Aim...........................................
1.2.Motivation.................................
1.3.Components.................................
1.4.Modulesof sms...........................
2. LiteratureSurvey...........................

2.1. Classes and Objects .................


3.Workflow of SMS..............................
4. Implementation……………………..

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

1.4 MODULES OF STUDENT MANAGEMENT SYSTEM

∙ Deletion of the student details

2
∙ Update

∙ Sort

∙ Find

∙ Display

2. LITERATURE SURVEY

2.1 CLASSES AND OBJECTS IN JAVA

3
Classes and Objects are basic concepts of Object Oriented Programming
which revolve around the real life entities.

A class is a user defined blueprint or prototype from which objects are


created. It represents the set of properties or methods that are common
to all objects of one type. In general, class declarations can include these
components, in order:

Modifiers : A class can be public or has default access

1. class keyword: class keyword is used to create a class.

2. Class name: The name should begin with a initial letter


(capitalized by convention).

3. Superclass(ifany): The name of the class’s parent (superclass),


if any, preceded by the keyword extends. A class can only
extend (subclass) one parent.

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, { }.

Constructors are used for initializing new objects. Fields are


variables that provides the state of the class and its objects, and
methods are used to implement the behavior of the class and its
objects. There are various types of classes that are used in real time
applications such as nested classes
There are four ways to create objects in java. Strictly
speaking there is only one way(by using new keyword),and
the rest internally use new keyword.

∙ Using new keyword : It is the most common and general way


to create object in java. ∙ Using

Class.forName (String className) method : There is a pre-

defined class in java.lang package with name Class. The

forName(String className) method returns the Class object

associated with the class with the given string name. We have to

give the fully qualified name for a class. On calling new

Instance() method on this Class object returns new instance of the class
within the given string name.

∙ Deserialization : De-serialization is technique of reading an


object from the saved state ina file.

In real-time, we need different objects of a class in different methods.


Creating a number of references for storing them is not a good practice
5
and therefore we declare a static reference variable and use it
whenever required. In this case, wastage of memory is less. The objects
that are not referenced anymore will be destroyed by Garbage
Collector of java

3.WORKFLOW OF STUDENT MANGEGEMENT

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

∙ 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

6
4.IMPLEMENTATION

import java.util.*;

class Student implements

Comparator<Student> {

private String name;

private String city;

private String email;

private String phone;

private int age;

private int id;

public Student()

public void setAge(Integer

age) { this.age = age;

public void setId(Integer id) {


this.id = id;
}
public void
setEmail(String
email) {

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());

break; } break; case 4:


Collections.sort(list,new Student());
for (Student s : list)
{
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("========================================
================
===================================================");
break;
case 5:
System.exit(0); break;
default:
System.out.println("\n\tPlease give a valid Input\t\n"); break;
}
}
}
}
}

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

You might also like