0% found this document useful (0 votes)
13 views14 pages

STD Reg Report

The document presents a project report on a Student Registration System designed to automate student registration and data management. It outlines the system's purpose, scope, features, and implementation using Java, including classes for student data and registration handling. The system aims to provide a secure and efficient platform for students to register, log in, and manage their information.

Uploaded by

wellcartpk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views14 pages

STD Reg Report

The document presents a project report on a Student Registration System designed to automate student registration and data management. It outlines the system's purpose, scope, features, and implementation using Java, including classes for student data and registration handling. The system aims to provide a secure and efficient platform for students to register, log in, and manage their information.

Uploaded by

wellcartpk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

OBJECT ORIENTED PROGRAMMING

MUHAMMAD FIAZ
ROLL NO : COSC241131232

SEMESTER : 2ND SEC (B)


PROJECT REPORT

DR . BINISH RAZA

HOSTEL MANAGEMENT SYSTEM


SYSTEM
HOSTEL MANAGEMENT SYSTEM

Introduction

The Student Registration System is an online platform that


provides students with registration, login, and data management
facilities. The purpose of this system is to provide a centralized
platform for managing student information securely and
efficiently, allowing students to access and manage their
information easily. This program is designed to provide a
comprehensive student registration system, enabling students to
register, login, and manage their details efficiently.
Purpose

The purpose of the Student Registration System is to automate the


student registration process, enabling efficient management of student
data. This system provides a centralized platform for student
registration, login, and data management.

Scope

The scope of the Student Registration System includes:


 Student Registration: Providing an online form for student
registration.
 Student Login: Providing a secure system for student login.
 Student Data Management: Efficiently managing student
data, enabling easy access to student information.
Features

The Student Registration System features:


 Registration Form: An online form for student registration.
 Login System: A secure system for student login.
 Student Data Management: Efficient management of
student data.
 Data Validation: Validating student data to ensure accuracy.
 Security: Implementing security measures to protect student
data.

Implementation:

The Student Registration System was implemented using


the Java programming language. A Student class was
created to represent student data, and a Registration
System class was developed to handle student registration
and login.
Program

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
class Student {
private String studentId;
private String name;
private String fatherName;
private String cnic;
private String phoneNumber;
private String course;
private String department;
private String address;
private String email;
private String photoPath;
private String gender;
private String password;
public Student(String studentId, String name, String fatherName, String cnic, String
phoneNumber, String course, String department, String address, String email, String
photoPath, String gender, String password) {
this.studentId = studentId;
this.name = name;
this.fatherName = fatherName;
this.cnic = cnic;
this.phoneNumber = phoneNumber;
this.course = course;
this.department = department;
this.address = address;
this.email = email;
this.photoPath = photoPath;
this.gender = gender;
this.password = password;
}
public String getStudentId() {
return studentId;
}
public String getName() {
return name;
}
public String getFatherName() {
return fatherName;
}
public String getCnic() {
return cnic;
}
public String getPhoneNumber() {
return phoneNumber;
}
public String getCourse() {
return course;
}
public String getDepartment() {
return department;
}
public String getAddress() {
return address;

public String getEmail() {

return email;

public String getPhotoPath() {

return photoPath;

public String getGender() {

return gender;

public String getPassword() {

return password;

public String toString() {

return "Student{" +

"studentId='" + studentId + '\'' +

", name='" + name + '\'' +

", fatherName='" + fatherName + '\'' +

", cnic='" + cnic + '\'' +

", phoneNumber='" + phoneNumber + '\'' +

", course='" + course + '\'' +

", department='" + department + '\'' +

", address='" + address + '\'' +

", email='" + email + '\'' +

", photoPath='" + photoPath + '\'' +

", gender='" + gender + '\'' +

'}';

}
}

class RegistrationSystem {

private Map<String, Student> students;

public RegistrationSystem() {

this.students = new HashMap<>();

public void addStudent(Student student) {

if (!students.containsKey(student.getStudentId())) {

students.put(student.getStudentId(), student);

System.out.println("Student " + student.getName() + " added successfully.");

} else {

System.out.println("Student with ID " + student.getStudentId() + " already exists.");

public Student getStudent(String studentId) {

return students.get(studentId);

public boolean verifyLogin(String studentId, String password) {

Student student = students.get(studentId);

return student != null && student.getPassword().equals(password);

public void listAllStudents() {

if (students.isEmpty()) {

System.out.println("No students registered.");

} else {

for (Student student : students.values()) {

System.out.println(student);

}
}

public class Main {

private static Scanner scanner = new Scanner(System.in);

private static RegistrationSystem registrationSystem = new RegistrationSystem();

public static void main(String[] args) {

while (true) {

System.out.println("\n1. Login");

System.out.println("2. Sign Up");

System.out.println("3. Exit");

System.out.print("Choose an option: ");

int choice = scanner.nextInt();

scanner.nextLine();

switch (choice) {

case 1:

login();

break;

case 2:

signUp();

break;

case 3:

System.out.println("Exiting...");

return;

default:

System.out.println("Invalid option. Please try again.");

}
private static void login() {

System.out.print("Enter Student ID: ");

String studentId = scanner.nextLine();

System.out.print("Enter Password: ");

String password = scanner.nextLine();

if (registrationSystem.verifyLogin(studentId, password)) {

System.out.println("Login successful!");

Student student = registrationSystem.getStudent(studentId);

System.out.println("Welcome, " + student.getName() + "!");

} else {

System.out.println("Invalid student ID or password.");

private static void signUp() {

System.out.print("Enter Student ID: ");

String studentId = scanner.nextLine();

System.out.print("Enter Student Name: ");

String name = scanner.nextLine();

System.out.print("Enter Father's Name: ");

String fatherName = scanner.nextLine();

System.out.print("Enter CNIC: ");

String cnic = scanner.nextLine();

System.out.print("Enter Phone Number: ");

String phoneNumber = scanner.nextLine();

System.out.print("Enter Course: ");

String course = scanner.nextLine();

System.out.print("Enter Department: ");


String department = scanner.nextLine();

System.out.print("Enter Address: ");

String address = scanner.nextLine();

System.out.print("Enter Email: ");

String email = scanner.nextLine();

System.out.print("Enter Photo Path: ");

String photoPath = scanner.nextLine();

System.out.print("Enter Gender: ");

String gender = scanner.nextLine();

System.out.print("Enter Password: ");

String password = scanner.nextLine();

Student student = new Student(studentId, name, fatherName, cnic, phoneNumber, course,


department, address, email, photoPath, gender, password);

registrationSystem.addStudent(student);

Classes

// 1. Student class : class Student { // code}


// 2. Registration System class : class Registration
System { // code}
// 3. Main class : public class Main { // code}
Output
The Student Registration System is an efficient and secure
system that manages student data. It provides a
centralized platform for student registration, login, and
data management.

The development of the Student Registration System has been


successful. This system provides a centralized platform for
student registration, login, and data management.

THANK YOU

You might also like