CGPA Calculator Project in Java Using JSP, Servlet and MySQL
CGPA Calculator Project in Java is a web-based application developed using Java, JSP, Servlet, and MySQL. The project is built in Eclipse IDE using Maven and follows the MVC architecture.
This CGPA Calculator or Mark Sheet Generator project can be used as a minor or major project for BCA, MCA, and other computer science students. It helps automate the process of entering student marks, calculating results, and generating mark sheets.
The project also provides a simple way for an admin or faculty member to manage students, semesters, subjects, and marks from a single application.
CGPA Calculator Project in Java – Overview
Creating mark sheets manually for a large number of students can take a lot of time and may lead to calculation mistakes.
The CGPA Calculator project automates this process. The admin can add student information, manage subjects and semesters, enter marks, and generate the final mark sheet.
The system automatically performs the required calculations based on the marks and credits configured for each subject.
The generated mark sheet can also be printed for physical records.
Objective of CGPA Calculator Project
The main objective of this project is to make the student result and mark sheet generation process simple and automatic.
Important objectives are:
- Reduce manual work in preparing mark sheets.
- Automatically calculate grades and CGPA.
- Manage student records digitally.
- Manage semesters and subjects.
- Store student marks in the database.
- Generate mark sheets quickly.
- Reduce calculation errors.
- Make student result records easier to maintain.
- Provide a simple web-based interface for faculty or admin.
Main Actor of the Application
The application has one main user:
Admin
The admin can perform the following operations:
- Login to the application.
- Add new students.
- Edit student information.
- Delete student records.
- Add new semesters.
- Edit semesters.
- Delete semesters.
- Add subjects according to the semester.
- Edit subject information.
- Delete subjects.
- Search students using enrollment number.
- Enter marks for each subject.
- Generate student mark sheets.
- Calculate CGPA automatically.
- Print the generated mark sheet.
Modules of CGPA Calculator Project
1. Admin Login Module
The admin can log in to the application using valid login credentials.
2. Student Management Module
The admin can manage student information such as:
- Student name
- Enrollment number
- Course
- Semester
- Other required student details
The admin can add, view, edit, and delete student records.
3. Semester Management Module
The admin can manage different semesters in the application.
The admin can:
- Add semester
- View semester
- Edit semester
- Delete semester
4. Subject Management Module
Subjects can be managed according to each semester.
The admin can:
- Add subjects
- Edit subjects
- Delete subjects
- Set subject credits
- View semester-wise subjects
When the admin selects a semester, the related subjects can be displayed automatically.
5. Marks Management Module
The admin can enter marks for students according to their subjects.
The system stores the marks in the database and uses them for result calculation.
6. CGPA Calculation Module
After entering marks, the application automatically calculates the result according to the configured marks, grades, and credits.
This reduces the need for manual calculations.
7. Mark Sheet Generation Module
The system generates a mark sheet containing student details, subjects, marks, grades, credits, and the final result.
8. Print Mark Sheet Module
The admin can print the generated mark sheet for maintaining physical records.
CRUD Operations in CGPA Calculator
This project also demonstrates basic CRUD operations.
- Create – Add students, subjects, and semesters.
- Read – View student, subject, and result records.
- Update – Edit existing records.
- Delete – Remove unwanted records.
CRUD operations are useful for students to understand how Java web applications work with databases.
Technology Used
The project is developed using the following technologies:
- Java – Main programming language.
- JSP – Used to create web pages.
- HTML – Used for page structure.
- CSS – Used for styling.
- Bootstrap – Used to create a responsive interface.
- JavaScript – Used for client-side validation and functionality.
- Servlet – Handles server-side requests.
- JDBC – Connects Java application with MySQL.
- MySQL – Stores application data.
- Maven – Manages project dependencies and libraries.
- MVC Architecture – Separates application logic, UI, and request handling.
- Apache Tomcat 8.5 – Used to deploy and run the web application.
- Eclipse IDE – Used for project development.
- JDK 1.8 – Required for running the project.
MVC Architecture
The CGPA Calculator project follows the MVC architecture, which makes the project easier to understand and maintain.
Model
The Model handles:
- Business logic
- Database operations
- Student data
- Subject data
- Marks and result information
View
The View contains the user interface created using:
- JSP
- HTML
- CSS
- Bootstrap
- JavaScript
Controller
The Controller is mainly implemented using Servlets.
Servlets receive requests from the user, process them, communicate with the Model, and return the required result to the View.
How CGPA Calculator Project Works
The basic workflow of the application is:
- Admin logs in to the application.
- Admin adds student information.
- Admin creates semesters.
- Admin adds subjects according to each semester.
- Admin selects a student using the enrollment number.
- The subjects related to the selected semester are displayed.
- Admin enters marks for each subject.
- The application calculates grades and CGPA automatically.
- The system generates the student’s mark sheet.
- Admin can print the generated mark sheet.
Free Source Code
The complete CGPA Calculator project source code is available on GitHub.
Download Free Source Code
CGPA Calculator Project in Java – Free GitHub Source Code
You can download the project from GitHub and configure it on your local system.
Project Demo
You can watch the project demo to understand how the CGPA Calculator application works.
Project Configuration Tutorial
Before running the project, you need to configure the Java web project with Eclipse, Maven, MySQL, and Apache Tomcat.
Follow this step-by-step guide:
Java Web Project Configuration Tutorial
The project requires JDK 1.8, MySQL, and Apache Tomcat 8.5.
UML Diagrams for CGPA Calculator
UML diagrams are useful for understanding the structure and workflow of the project.
UML Diagrams for CGPA Calculator Project
Viva Questions for Java Project
If you are preparing this project for college submission or a final-year project viva, you can also check common Java project viva questions.
Java Project Viva Questions and Answers
More Java Projects with Source Code
Looking for more Java minor and major projects?
Check More Java Projects with Source Code
Conclusion
The CGPA Calculator Project in Java Using JSP, Servlet and MySQL is a useful academic project for students who want to learn Java web development.
It demonstrates important concepts such as JSP, Servlet, MySQL, JDBC, Maven, MVC architecture, CRUD operations, and automatic result calculation.
The project is suitable for BCA, MCA, and other computer science students as a minor or major project. It also gives students practical experience in developing a complete Java-based web application.