0% found this document useful (0 votes)
24 views19 pages

Dsa R

The document is a project report for a CGPA/SGPA Calculator developed by students from Guru Nanak Dev Engineering College as part of their Bachelor of Engineering degree in Computer Science and Engineering. It outlines the project's objectives, implementation details, hardware and software requirements, and includes acknowledgments and a declaration of originality. The application is designed to automate the calculation of academic performance metrics using C programming and data structures.

Uploaded by

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

Dsa R

The document is a project report for a CGPA/SGPA Calculator developed by students from Guru Nanak Dev Engineering College as part of their Bachelor of Engineering degree in Computer Science and Engineering. It outlines the project's objectives, implementation details, hardware and software requirements, and includes acknowledgments and a declaration of originality. The application is designed to automate the calculation of academic performance metrics using C programming and data structures.

Uploaded by

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

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

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

GURU NANAK DEV ENGINEERING COLLEGE, BIDAR -585401


VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELAGAVI
GURU NANAK DEV ENGINEERING COLLEGE
BIDAR-585403, KARNATAKA

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

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.

………………… …………………. ………………….


Signature of Guide Signature of HOD Signature of Principal
Prof. Guruprasad K Dr. Anuradha annigeri Dr. Dhananjay M

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.

The work is submitted to Visvesvaraya Technological University, Belagavi in


partial fulfilment of the requirement for the award of Bachelor of Engineering in
Computer Science & Engineering, during the academic year 2024-2025.

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.

It gives me immense pleasure in expressing my heartfelt gratitude to Dr. Anuradha


Annigeri Head of the Department, Computer Science and Engineering for giving me the
guidance and encouragement to complete my project successfully.
I would like to express my deep sense of gratitude to our Principal Dr. Dhananjay M for
his continuous effort in inculcating a competitive environment in our minds and encourages
us to bring out the best in us.
I am also thankful to all the staff members of the Computer Science and Engineering
Department for their support and co-operation.
I thank every individual who have directly or indirectly influenced me to propel the
project to its completion.

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.

ABOUT PROJECT - PROJECT DETAILS-

Project Name: CGPA / SGPA Calculator

Project platform: C

Programming language used: C programming language

Developer name: itsourcecode.com

IDE Tool: vs code/dev-c++ / turbooc++

Project Type: Educational utility


Application

Database: stores data in. c files


INDEX

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:

• Operating System: Windows, Linux, or macOS.

• Compiler: GCC (GNU Compiler Collection) or any C language compiler.


• Editor: Code::Blocks, Visual Studio Code, or any text editor supporting C.

5. Implementation:

• Programming Language: C
• Key Components:
Input Modules: Accept subject details, credits, and grades.
Processing Modules: Calculate SGPA and CGPA using the formula:

Output Modules: Display results to the user.


Data Storage: Store academic data in arrays or files for future use.

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("Hello, Welcome to SGPA Calculator\n");

printf("_\n");

printf("Please enter the desired option\n");

printf("1. Calculate SGPA and display score card\n");

printf("2. Calculate CGPA\n");


printf("3. Exit\n");

printf("_\n");

printf("Enter the desired option: ");

scanf("%d",&option);

switch(option)

case 1: calculate();

break;;

case 2: CGPA();

break;

case 3: printf("Thank You!");

exit(0);

default: printf("Enter a valid option\n");

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

printf("Enter number of subjects\n");

scanf("%d",&n);

for (i=0;i<n;i++)

printf("Enter subject name:\n");

scanf("%s",c1[i].subname);

printf("Enter Marks obtained:\n");

scanf("%d",&c1[i].marks);

printf("Enter Credits of the subject entered:\n");

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("Your scorecard is as follows: \n");

printf("Name: %s\n",name);

printf("USN: %s\n",usn);

printf("Department: %s\n", dept);

printf("Subject-wise break-up -\n");

printf("\n");

for (i=0;i<n;i++)
{

printf("Subject Name: %s\n", c1[i].subname);

printf("Subject Credits: %d\n",c1[i].credit);

printf("Marks obtained: %d\n",c1[i].marks);

printf("\n");

printf("SGPA: %.2f\n",total);

printf("\n");

return 0;

int CGPA()

int i,n;

float sem[8];

float sum=0;

float avg;

printf("Enter your total semester\n");

scanf("%d",&n);

printf("Enter Semester - Wise SGPA\n");

for(i=0;i<n;i++)

scanf("%f",&sem[i]);
}

for(i=0;i<n;i++)

sum=sem[i]+sum;

avg=sum/n;

printf("Your CGPA is: %.2f\n",avg);

return 0;

OUTPUTS:

You might also like