Dsa R
Dsa R
BELAGAVI
A PROJECT REPORT ON
“CGPA / SGPA CALCULATOR”
In partial fulfilment of the requirement for the award of the degree of
Batchelor of Engineering
In
“COMPUTER SCEINCE AND ENGINEERING”
Submitted by:
MD YASEEN AHMED (3GN23CS043)
MD IQRAR UDDIN (3GN23CS038)
MOHAMMED MENHAJ (3GN23CS049)
MOHD FAZAL ULLAH (3GN23CS052)
Under the guidance of:
PROF. GURUPRASAD K
CERTIFICATE
This is to certify that the project work entitled “CGPA/SGPA CALCULATOR” is a
bonified work carried out by MD YASEEN AHMED(3GN23CS043), MD IQRAR
UDDIN(3GN23CS038),MOHAMMED MENHAJ(3GN23CS049), MOHD FAZAL
ULLAH(3GN23CS052) in partial fulfilment of the requirements for the award of degree
Bachelor of Engineering in DEPARTMENT OF COMPUTER SCIENCE &
ENGINEERING by VISVESVARAYA TECHNOLOGICAL UNIVERSITY,
BELAGAVI during the academic year 2024-2025. It is certified that the project report
satisfied the academic requirements in respect of project work prescribed for the Bachelor of
Engineering Degree.
External examiners:
Name of Examiners Signature with Date
1) ……………… ……………………….
2) ……………… ……………………….
DECLARATION
We MD YASEEN AHMED (3GN23CS043), MD IQRAR UDDIN (3GN23CS038),
MOHAMMED MENHAJ(3GN23CS049) MOHD FAZAL ULLAH
(3GN23CS113), students of Bachelor of Engineering (CSE) of Computer
Science & Engineering, Guru Nanak Dev Engineering College Bidar-
585403, declare that the work titled has been successfully completed under the
internal guidance of Prof. Guruprasad K of Computer Science &
Engineering Department.
I have not submitted the matter embodied to any other university/institution for
the reward of any other degree.
MD YASEEN AHMED(3GN23CS043)
MD IQRAR UDDIN(3GN23CS038)
MOHAMMED MENHAJ(3GN23CS049)
MOHD FAZAL ULLAH(3GN23CS052)
Place: Bidar
Date: December 2024
ACKNOWLEDGEMENT
The satisfaction and euphoria that accompany the successful completion of any work
would be incomplete without mentioning the people who have made it possible, because
success is the epitome of hard work. So with gratitude, I acknowledge all those whose
guidance and encouragement have made my efforts successful.
A special debt of gratitude is owed to my guide, Prof. Guruprasad k for his gracious
efforts & keen pursuit, which remains as a valuable assert for the successful completion of
my project. His dynamism and diligent enthusiasm has been highly suggestive, blended with
an innate intelligent application have crowned my task with success.
CORDIALLY
MD YASEEN AHMED(3GN23CS043)
MD IQRAR UDDIN(3GN23CS038)
MOHAMMED MENHAJ(3GN23CS049)
MOHD FAZAL ULLAH(3GN23CS052)
ABSTRACT
The CGPA/SGPA Calculator project is a C language-based application
designed to compute and display students’ academic performance efficiently.
This project leverages core data structures such as arrays, structures, and linked
lists to manage and process academic records systematically.
The application accepts inputs such as course credits, grades, and
corresponding grade points for multiple subjects. Using predefined formulas, it
calculates Semester Grade Point Average (SGPA) for individual semesters and
Cumulative Grade Point Average (CGPA) for overall academic performance.
The project demonstrates key concepts of data organization, modular
programming, and algorithm optimization. Through the integration of robust
data validation and error-handling mechanisms, the application ensures accurate
computations. It also highlights real-world applications of data structures,
including searching, sorting, and manipulating academic data.
Project platform: C
INTRODUCTION
OBJECTIVES
HARDWARE REQUIREMENTS
SOFTWARE REQUIREMENTS
IMPLEMENTATION
WORKING
CHALANGES FACED
FUTURE ENHANCEMENT
CONCLUSION
REFERENCE
1. Introduction:
The CGPA/SGPA Calculator is a C language-based program designed
to help students and academic institutions calculate and manage academic
performance metrics such as Semester Grade Point Average (SGPA) and
Cumulative Grade Point Average (CGPA). This project highlights the
practical application of C programming and data structures to solve real-
world problems in an educational context.
It takes input such as grades and credits for various subjects and
computes results using predefined formulas, ensuring accurate and
efficient performance tracking.
2. Objectives:
• To automate the calculation of SGPA and CGPA for students.
• To demonstrate the use of data structures such as arrays and structures
for efficient data handling.
• To create a user-friendly tool for academic performance evaluation.
• To provide a flexible and scalable program for storing, manipulating,
and retrieving student data.
3. Hardware Requirements:
• Processor: Intel Core i3 or above.
• RAM: Minimum 4 GB.
• Storage: 500 MB of free space for project files and data.
• Display: Any monitor supporting text-based output.
4. Software Requirements:
5. Implementation:
• Programming Language: C
• Key Components:
Input Modules: Accept subject details, credits, and grades.
Processing Modules: Calculate SGPA and CGPA using the formula:
6. Working:
1.The program prompts the user to enter subject details, including grades
and credits.
2. Using the provided input, it calculates SGPA for a single semester.
3. If CGPA is required, it combines multiple semester data to compute
cumulative performance.
4. Results are displayed on the screen and optionally saved in a file for
future reference.
7. Challenges faced:
• Handling invalid user inputs and ensuring data validation.
• Implementing dynamic data storage for varying numbers of subjects or
semesters.
• Optimizing the algorithm for large datasets.
• Ensuring the accuracy of calculations with floating-point numbers.
8. Future Enhancements:
• Develop a graphical user interface (GUI) for better user experience.
• Integrate with a database management system for large-scale data
storage.
• Add features for statistical analysis and performance tracking over time.
•Extend support for multiple grading systems (e.g., percentage, letter
grades).
9. Conclusion:
The CGPA/SGPA Calculator successfully demonstrates the use of C
programming and data structures to solve a practical academic problem. By
automating the calculation process, it reduces errors and saves time for
students and academic institutions. This project showcases the importance
of programming in real-world applications and sets a foundation for further
enhancements.
10.References:
• Books:
• “Let Us C” by Yashavant Kanetkar
• “The C Programming Language” by Brian W. Kernighan and Dennis M.
Ritchie
• Websites:
• GeeksforGeeks ( https://www.geeksforgeeks.org/)
• TutorialsPoint (https://www.tutorialspoint.com/)
SOURCE CODE:
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
struct subject
char subname[32];
int credit;
int marks;
int gpoint;
}c1[12];
int calculate();
int CGPA();
int main()
int option;
printf("_\n");
printf("_\n");
scanf("%d",&option);
switch(option)
case 1: calculate();
break;;
case 2: CGPA();
break;
exit(0);
exit(0);
return 0;
int calculate()
int i,n;
char name[32];
char usn[10];
char dept[10];
int result[100];
float total=0;
float sum=0;
float csum=0;
printf("Name: ");
scanf("%s",name);
printf("USN: ");
scanf("%s",usn);
printf("Department: ");
scanf("%s",dept);
scanf("%d",&n);
for (i=0;i<n;i++)
scanf("%s",c1[i].subname);
scanf("%d",&c1[i].marks);
scanf("%d",&c1[i].credit);
c1[i].gpoint=(c1[i].marks/10)+1;
}
for (i=0;i<n;i++)
result[i]=c1[i].credit*c1[i].gpoint;
for(i=0;i<n;i++)
sum=sum+result[i];
for(i=0;i<n;i++)
csum=csum+c1[i].credit;
total=sum/csum;
printf("\n");
printf("Name: %s\n",name);
printf("USN: %s\n",usn);
printf("\n");
for (i=0;i<n;i++)
{
printf("\n");
printf("SGPA: %.2f\n",total);
printf("\n");
return 0;
int CGPA()
int i,n;
float sem[8];
float sum=0;
float avg;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%f",&sem[i]);
}
for(i=0;i<n;i++)
sum=sem[i]+sum;
avg=sum/n;
return 0;
OUTPUTS: