0% found this document useful (0 votes)
22 views7 pages

Object Oriented Programming - OOP SUBJECT CODE CO 203 (15)

The CGPA Calculation project automates the computation of Cumulative Grade Point Average (CGPA) for students by taking grades and credit hours as input. It utilizes object-oriented programming principles in C++ and includes functionalities for data input, CGPA calculation, and data persistence through file operations. The project aims to enhance programming understanding while providing a user-friendly interface for accurate CGPA computation.

Uploaded by

48 Uma shankar
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)
22 views7 pages

Object Oriented Programming - OOP SUBJECT CODE CO 203 (15)

The CGPA Calculation project automates the computation of Cumulative Grade Point Average (CGPA) for students by taking grades and credit hours as input. It utilizes object-oriented programming principles in C++ and includes functionalities for data input, CGPA calculation, and data persistence through file operations. The project aims to enhance programming understanding while providing a user-friendly interface for accurate CGPA computation.

Uploaded by

48 Uma shankar
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/ 7

Abstract

The CGPA Calculation project is designed to help students calculate their


Cumulative Grade Point Average (CGPA) efficiently. The program takes input for
grades obtained in various courses and computes the weighted average based
on the respective credit hours. The project demonstrates fundamental
programming concepts, including object-oriented design, file I/O, and
algorithmic efficiency. This project aims to simplify the process of CGPA
calculation and enhance the understanding of programming concepts for
academic applications.
Contents
1. Introduction
2. Approach
2.1 Planning and Design
2.2 Implementation
2.3 Tools and Libraries
3. Technical Documentation and Results
3.1 Data Structures
3.2 Methods
3.3 Application Workflow
3.4 Results
4. Conclusion and References
Chapter 1: Introduction

Academic performance measurement is a critical aspect of higher education.


CGPA (Cumulative Grade Point Average) is a standardized method to evaluate a
student’s overall academic performance. The CGPA Calculation project
simplifies this process by automating the computation of CGPA based on user
input. The project’s objective is to provide a user-friendly interface to compute
CGPA accurately while demonstrating object-oriented programming (OOP)
principles in C++.
Chapter 2: Approach
2.1 Planning and Design

The project was divided into the following components:

1. Data Input: Accept grades and credit hours for various subjects from the user.
2. Computation Logic: Implement the formula for CGPA calculation:
Data Persistence: Save and retrieve student data using file operations.

2.2 Implementation

1. Class Definitions:
Course: Stores information about a course, including its grade and credit hours.
Student: Manages a list of courses and provides methods for CGPA computation.
2. Core Functionalities:
Adding course details.
Calculating and displaying CGPA.
Saving and loading data from a file.
3. Command-Line Interface:
A menu-driven interface allows users to interact with the program.

2.3 Tools and Libraries

C++ Standard Library: Used for vector operations, file handling, and string manipulation.
Compiler: GCC for compiling and testing.
IDE: Visual Studio Code for development and debugging.
Chapter 3: Technical Documentation and
Results
3.1 Data Structures
struct Course {

std::string name;

float grade;

int creditHours;

};

class Student {

private:

std::vector<Course> courses;

public:

void addCourse(const std::string& name, float grade, int creditHours);

float calculateCGPA() const;

bool saveToFile(const std::string& filename) const;

bool loadFromFile(const std::string& filename);

};

3.2 Methods

1. addCourse: Adds a new course to the student’s record.


2. calculateCGPA: Computes the CGPA using the grades and credit hours of all courses.
3. saveToFile: Saves course data to a file.
4. loadFromFile: Loads course data from a file.

3.3 Application Workflow

1. Load existing data (if available).


2. Display a menu to the user.
3. Perform operations such as adding courses, calculating CGPA, and saving data.
4. Save data and exit.
3.4 Results
Sample Output:

Menu:

1. Add Course

2. Calculate CGPA

3. Save and Exit

Enter your choice: 2

Courses:

1. Mathematics (Grade: 8.5, Credits: 4)

2. Physics (Grade: 9.0, Credits: 3)

3. Chemistry (Grade: 8.0, Credits: 3)

CGPA: 8.45
Chapter 4: Conclusion and References
4.1 Conclusion

The CGPA Calculation project demonstrates the application of object-oriented principles in


solving a real-world problem. It emphasizes the importance of structured programming and
efficient data management. The project can be extended by adding features such as graphical
interfaces, database integration, or grade prediction algorithms.

4.2 References

1. Bjarne Stroustrup, The C++ Programming Language, Addison-Wesley, 2013.


2. ISO/IEC JTC1/SC22/WG21, The C++ Standard, https://isocpp.org/.
3. TutorialsPoint, “C++ File I/O,”
https://www.tutorialspoint.com/cplusplus/cpp_files_streams.htm.
4. The source code for this project is hosted on GitHub and can be accessed at the
following link:
CGPA Calculation GitHub Repository

You might also like