Project 17

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

Koneru Lakshmaiah Education Foundation

(Deemed to be University)

FRESHMAN ENGINEERING DEPARTMENT


A Project Based Lab Report

On

UNIVERSITY ADMISSION SYSTEM


SUBMITTED BY:
Name Regd.No
G Raghu Ram 2200032009
G. Sri Prahas 2200032036
K. Sai Rohan Reddy 2200032037
A. Brahma Naidu 2200032060

UNDER THE GUIDANCE OF

MS V. Prema Latha

Assistant Professor,CSE.

KL UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.
DEPARTMENT OF BASIC ENGINEERING SCIENCES-1

CERTIFICATE

This is to certify that the project based laboratory report entitled


UNIVERSITY ADMISSION SYSTEM submitted by BATCH- to the Department of
Basic Engineering Sciences-1, KL University in partial fulfillment of the
requirements for the completion of a project based Laboratory in “Computational
Thinking for Object Oriented Design ”course in I B Tech II Semester, is a
bonafide record of the work carried out by BATCH-17 under my supervision
during the academic year 2021 – 2022.

PROJECT SUPERVISOR HEAD OF THE DEPARTMENT

MS V. Prema Latha Dr. D. Haritha


ACKNOWLEDGEMENTS

It is great pleasure for me to express my gratitude to our honorable


President Sri. Koneru Satyanarayana, for giving the opportunity and platform
with facilities in accomplishing the project based laboratory report.

I express the sincere gratitude to our Director Dr. A.Jagadeesh for his
administration towards our academic growth.

I express sincere gratitude to HOD-BES-1 Dr. D.Haritha for his leadership and
constant motivation provided in successful completion of our academic semester.
I record it as my privilege to deeply thank for providing us the efficient faculty and
facilities to make our ideas into reality.

I express my sincere thanks to our project supervisor V.PremaLatha for her


novel association of ideas, encouragement, appreciation and intellectual zeal
which motivated us to venture this project successfully.

Finally, it is pleased to acknowledge the indebtedness to all those who


devoted themselves directly or indirectly to make this project report success.

Name Regd.No
G Raghu Ram 2200032009
G. Sri Prahas 2200032036
K. Sai Rohan Reddy 2200032037
A. Brahma Naidu 2200032060
ABSTRACT

The objective of this project is to develop a Graphical User Interface (GUI) based
program for the admission process into a university. The program should allow the
student to select the criteria based on which they are joining the university, such as
EAMCET IPE, MAINS, or ADVANCED. The program should also take in the
student's marks in that particular exam and display the available branches as per their
marks.

Additionally, the program should display the concession of fee and final fee in
accordance with the student's marks In another frame, the program should allow the
student to input their personal details such As name, age, gender, father's details,
mother's details, and mode of payment

The program should display all this information on the screen and then store it in a
file Overall, this project aims to streamline the admission process and make it easier
for both the students and the university. The GUI-based interface will provide a user-
friendly experience and reduce the chances of errors during the admission process
Additionally, the program will help the universities to maintain records of students
who have applied for admission
INDEX
S.NO TITLE
PAGE NO

1 Introduction 6

2 Aim of the Project 7

2.1 Software and hardware Details 3

2.2 Future Implementation 3

3 Software & Hardware Details 4

4 Class Diagram 5

5 Algorithm for each module 7

6 Implementation 9

7 Integration and System Testing 24


INTRODUCTION

This project is a GUI-based program that aims to simplify th process of admission


into a university. The program will display a frame for the student to select the
criteria based on which they are joining the university The criteria include
EAMCET, IPE, MAINS,and ADVANCED After selecting the criteria, the program
will take in the student marks in the particular exam and display the branches
available as per the marks The program will also display the concession of fee and
final fee in accordance with their marks In addition to this, the program will also
display another frame

where the student can input their personal details such as name, age, gender, father's
details, mother's details, and mode of payment Once all the details have been
entered, the program will display all the information on the screen and store it in a
file

This project will help streamline the admission process for the university and make
it Easier for the students to apply The program will ensure that all the information
is stored safely and can be accessed later on A GUI includes GUI objects like icons,
cursors, and buttons. These graphical elements are sometimes enhanced with sounds,
or visual effects like transparency and drop shadows. Using these objects, a user can
use the computer without having to know commands.

Below is a picture of the Windows 7 desktop and an example of a GUI operating


system. In this example, you could use a mouse to move a pointer and click a program
icon to start a program

..

6
.

First create the Login page Frame using complete GUI concepts, So create a Frame with the
title at the center as “Welcome to ABC Bank” with two text fields for Username, Password
with the correct you enter into the website of the Bank.

The next frame consists of 3 buttons 1 for showing Bank Transaction details, 2 to Send
Money and 3 to Apply Loan.

Before the transactions are done then the Details page shows Transactions as None.

On selecting Send Money two Text Fields are given 1 to Enter the receiver’s account
number and the other to enter the amount to be sent.

Only if the account number is 10 numbers and the amount is only a positive number the
money is successfully Sent otherwise a dialog box displays message as Invalid.

If successful the account number and the amount is recorded and it updates in the
Transaction Details page.

To apply Loan the only Text Field available is the Amount requested to be Loaned and a
radio button for the confirmation of the request.

If the Loan is successfully applied then the loan is granted and the transaction is also
recorded and updated in the Transaction details pane.

Along with the Details also the bank balance is updated according to the Transaction done.

7
AIM

The aim of this project is to develop a GUI-based program that will simplify the admission
process into the university. The program will allow students to select then criteria based
on which they are joining the university and enter their marks in the particular exam. The
program will then display the branches available as per the marks, along with the
concession of fee and final fee in accordance with their marks. In addition to this, the
program will also allow students to input their personal details such as name, age, gender,
father's details, mother's details, and mode of payment in another frame. The program will
display all the entered information on the screen and store it in a file.

The main aim of this project is to make the admission process into the university more
efficient, faster, and error-free. The program will reduce the time and effort required to
process the admission forms manually, and it will also ensure that all the data is accurately
recorded and stored securely

Advantages:-
1.Easy to use
2.Used to apply for collages,
3.Applying facility,

Disadvantages:-
1. No animations have been used in the User Interface.
2. Does not show when applicationhas been received from other accounts
3. Many features like Online Help desk have not been implemented.

Future Enhancements:-
1. Future Enhancements are more graphics like animations, scrolling text and
better background can be done.
2. Make another Details page that shows the applications where we sent
admissions to

8
SYSTEM REQUIREMENTS

 SOFTWARE REQUIREMENTS:
The major software requirements of the project are as follows:
Language : JDK 17.0.2 ECLIPSE
Operating System: Windows Xp or later.

 HARDWARE REQUIREMENTS:
The hardware requirements that map towards the software are as follows:

RAM : 8.00 GB (7.77 GB usable)

Processor : Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz 1.19 GHz

9
CLASS DIAGRAM

10
IMPLEMENTATION

package PROJECT1;

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;

public class LoginPage extends JFrame implements ActionListener {

JLabel l1, l2, l3;

JTextField tf1;

JPasswordField pf2;

JButton btn1, btn2;

LoginPage() {

setTitle("Admission Login Page");

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setSize(400, 150);

setLocation(500, 250);

setResizable(false);

setLayout(new GridLayout(3, 2));

l1 = new JLabel("Username:");

tf1 = new JTextField();


11
l2 = new JLabel("Password:");

pf2 = new JPasswordField();

btn1 = new JButton("Login");

btn2 = new JButton("Cancel");

btn1.addActionListener(this);

btn2.addActionListener(this);

add(l1);

add(tf1);

add(l2);

add(pf2);

add(btn1);

add(btn2);

setVisible(true);

public void actionPerformed(ActionEvent ae) {

String uname = tf1.getText();

String pass = pf2.getText();

if (ae.getSource() == btn1) {

if (uname.equals("admin") && pass.equals("admin123")) {

JOptionPane.showMessageDialog(this, "Login successful");

AdmissionForm af = new AdmissionForm();

setVisible(false);

af.setVisible(true);

12
} else {

JOptionPane.showMessageDialog(this, "Incorrect username or password");

tf1.setText("");

pf2.setText("");

} else {

tf1.setText("");

pf2.setText("");

public static void main(String[] args) {

new LoginPage();

13
Package PROJECT1;

import javax.swing.*;

import java.awt.*;

import java.io.*;

import java.awt.event.*;

public class AdmissionForm extends JFrame implements ActionListener {

private JLabel criteriaLabel, marksLabel, nameLabel, ageLabel, genderLabel,


fatherLabel, motherLabel, paymentLabel, branchLabel, feeLabel;

private JComboBox<String> criteriaBox;

private JTextField marksField, nameField, ageField, genderField, fatherField,


motherField, paymentField;

private JButton selectButton, submitButton;

private JTextArea outputArea;

public AdmissionForm() {

// initialize the UI components and add them to the frame

criteriaLabel = new JLabel("Select criteria:");

criteriaBox = new JComboBox<String>(new String[]{"EAMCET", "IPE",


"MAINS", "ADVANCED"});

marksLabel = new JLabel("Enter marks:");

marksField = new JTextField();

selectButton = new JButton("Select branches");

selectButton.addActionListener(this);

14
nameLabel = new JLabel("Name:");

nameField = new JTextField();

ageLabel = new JLabel("Age:");

ageField = new JTextField();

genderLabel = new JLabel("Gender:");

genderField = new JTextField();

fatherLabel = new JLabel("Father's details:");

fatherField = new JTextField();

motherLabel = new JLabel("Mother's details:");

motherField = new JTextField();

paymentLabel = new JLabel("Mode of payment:");

paymentField = new JTextField();

submitButton = new JButton("Submit");

submitButton.addActionListener(this);

branchLabel = new JLabel("Branches available:");

feeLabel = new JLabel("Fee:");

outputArea = new JTextArea(10, 30);

JPanel criteriaPanel = new JPanel(new GridLayout(2, 2));

criteriaPanel.add(criteriaLabel);

criteriaPanel.add(criteriaBox);

criteriaPanel.add(marksLabel);

criteriaPanel.add(marksField);

JPanel buttonPanel = new JPanel(new FlowLayout());

15
buttonPanel.add(selectButton);

JPanel branchPanel = new JPanel(new GridLayout(2, 1));

branchPanel.add(branchLabel);

branchPanel.add(feeLabel);

JPanel studentPanel = new JPanel(new GridLayout(7, 2));

studentPanel.add(nameLabel);

studentPanel.add(nameField);

studentPanel.add(ageLabel);

studentPanel.add(ageField);

studentPanel.add(genderLabel);

studentPanel.add(genderField);

studentPanel.add(fatherLabel);

studentPanel.add(fatherField);

studentPanel.add(motherLabel);

studentPanel.add(motherField);

studentPanel.add(paymentLabel);

studentPanel.add(paymentField);

studentPanel.add(submitButton);

JPanel outputPanel = new JPanel(new GridLayout(1, 2));

outputPanel.add(new JScrollPane(outputArea));

outputPanel.add(branchPanel);

Container contentPane = getContentPane();

contentPane.setLayout(new GridLayout(2, 1));

16
contentPane.add(criteriaPanel);

contentPane.add(buttonPanel);

contentPane.add(studentPanel);

contentPane.add(outputPanel);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

public void actionPerformed(ActionEvent e) {

if (e.getSource() == selectButton) {

String criteria = (String) criteriaBox.getSelectedItem();

int marks = Integer.parseInt(marksField.getText());

String branches = getBranches(criteria, marks);

double fee = calculateFee(marks);

branchLabel.setText("Branches available: " + branches);

feeLabel.setText("Fee: " + fee);

} else if (e.getSource() == submitButton) {

String name = nameField.getText();

int age = Integer.parseInt(ageField.getText());

String gender = genderField.getText();

String father = fatherField.getText();

String mother = motherField.getText();

String payment = paymentField.getText();

String criteria = (String) criteriaBox.getSelectedItem();

int marks = Integer.parseInt(marksField.getText());

String branches = getBranches(criteria, marks);

double fee = calculateFee(marks);

// display the student's information and fees


17
outputArea.setText("Name: " + name + "\nAge: " + age + "\nGender: " +
gender

+ "\nFather's details: " + father + "\nMother's details: " + mother +


"\nMode of payment: "

+ payment + "\nCriteria: " + criteria + "\nMarks: " + marks + "\nBranches available:


"

+ branches + "\nFee: " + fee);

// write the student's information to a file

try {

File file = new File("admission.txt");

FileWriter writer = new FileWriter(file, true);

writer.write(name + "," + age + "," + gender + "," + father + "," + mother +


"," + payment + ","

+ criteria + "," + marks + "," + branches + "," + fee + "\n");

writer.close();

} catch (IOException ex) {

ex.printStackTrace();

// method to get the available branches based on the student's criteria and marks

public String getBranches(String criteria, int marks) {

String branches = "";

if (criteria.equals("EAMCET")) {

if (marks >= 80) {

branches += "CSE, ECE";


18
} else if (marks >= 70) {

branches += "ECE, IT";

} else if (marks >= 60) {

branches += "ME, CSE";

} else if (marks >= 50) {

branches += "ME, CE";

} else {

branches += "No branches available";

} else if (criteria.equals("IPE")) {

if (marks >= 95) {

branches += "CSE, ECE";

} else if (marks >= 90) {

branches += "ECE, IT";

} else if (marks >= 85) {

branches += "ME, CSE";

} else if (marks >= 80) {

branches += "ME, CE";

} else {

branches += "No branches available";

} else if (criteria.equals("MAINS")) {

if (marks >= 150) {

branches += "CSE, ECE";

} else if (marks >= 125) {

branches += "ECE, IT";

19
} else if (marks >= 100) {

branches += "ME, CSE";

} else if (marks >= 75) {

branches += "ME, CE";

} else {

branches += "No branches available";

} else if (criteria.equals("ADVANCED")) {

if (marks >= 200) {

branches += "CSE, ECE";

} else if (marks >= 175) {

branches += "ECE, IT";

} else if (marks >= 150) {

branches += "ME, CSE";

} else if (marks >= 125) {

branches += "ME, CE";

} else {

branches += "No branches available";

return branches;

// method to calculate the fee based on the student's marks

public double calculateFee(int marks) {

double fee = 0.0;

20
if (marks >= 80) {

fee = 100000.0;

} else if (marks >= 60) {

fee = 75000.0;

} else if (marks >= 40) {

fee = 50000.0;

} else {

fee = 25000.0;

return fee;

// additional method to clear all the fields

public void clearFields() {

nameField.setText("");

ageField.setText("");

genderField.setText("");

fatherField.setText("");

motherField.setText("");

paymentField.setText("");

criteriaBox.setSelectedIndex(0);

marksField.setText("");

outputArea.setText("");

} // main method to start the program

public static void main(String[] args) {

21
AdmissionForm form = new AdmissionForm();

form.setVisible(true);

22
5.OUTPUTS

23
CONCLUSION
In conclusion the development of a GUI-based program for the admission process into the
university will greatly simplify the entire process for both students and the university
administration The program will allow students to select the criteria based on which they
are joining the university, enter their marks in the particular exam, and display the
branches available as per the marks

Additionally, the program will also provide information on the concession of fee and final
fee in accordance with the student's marks. In another frame, students can input their
personal details such as name, , age, gender, father's details, mother's details, and mode of
payment The program will display all the entered information on the screen and store it in
a file. This program will not only reduce the manual effort and time required for
processing admission forms but also ensure the accuracy and security of the data. This
will result in a more efficient and faster admission process providing a better experience
for students and administrations So using the conce of GUI, String, Data type conversion
and Array a working website.

24

You might also like