Object Oriented Programming - OOP SUBJECT CODE CO 203 (15)
Object Oriented Programming - OOP SUBJECT CODE CO 203 (15)
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.
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:
};
3.2 Methods
Menu:
1. Add Course
2. Calculate CGPA
Courses:
CGPA: 8.45
Chapter 4: Conclusion and References
4.1 Conclusion
4.2 References