The CGPA Calculator is a terminal-based application that allows students to manage and calculate their Cumulative Grade Point Average (CGPA). Students can input their personal details, course units, and grades, and the application will compute the GPA for each semester and the overall CGPA.
- C++: Core programming language.
- SQLite: Database management.
- Object-Oriented Programming: Code organization and structure.
- CMake: Cross-platform build system.
- Google Test: Unit testing framework.
- Add student details: Name, Student ID, Current Year, and Current Semester.
- Add course units and grades for each semester.
- Calculate GPA for each semester.
- Calculate cumulative GPA (CGPA).
- Ensure you have
git
installed for cloning repositories. - Ensure you have CMake installed and added to your system's PATH.
-
Clone the Repository:
git clone https://github.com/yourusername/CGPA_Calculator.git cd CGPA_Calculator
-
Install CMake:
- Download CMake from here
- Add the CMake binary path (e.g.,
C:\Program Files\CMake\bin
) to your environment variables.
-
Clone SQLiteCpp:
cd external git clone https://github.com/SRombauts/SQLiteCpp.git
-
Modify SQLiteCpp CMakeLists.txt:
- Open
CMakeLists.txt
in theexternal/SQLiteCpp
folder. - Change line 388 from:
to:
option(SQLITECPP_RUN_CPPLINT "Run cpplint.py tool for Google C++ StyleGuide." ON)
option(SQLITECPP_RUN_CPPLINT "Run cpplint.py tool for Google C++ StyleGuide." OFF)
- Open
-
Build the Project:
cd .. mkdir build cd build cmake .. cmake --build . --config Release
-
Run the Application:
cd Release CGPA_Calculator_Main.exe
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries, please contact tiendat041202@gmail.com.
Made with ❤️ by Dat Pham