Skip to content

The CGPA Calculator is a terminal-based tool for students to manage and calculate their GPA and CGPA efficiently. Enter personal details, course units, and grades to track academic performance. Built with C++ and SQLite.

License

Notifications You must be signed in to change notification settings

datpham0412/cgpa-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎓 CGPA Calculator (Cumulative Grade Point Average Calculator)

License: MIT GitHub issues GitHub stars GitHub forks

📋 Project Description

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.

🛠 Technologies Used

  • C++: Core programming language.
  • SQLite: Database management.
  • Object-Oriented Programming: Code organization and structure.
  • CMake: Cross-platform build system.
  • Google Test: Unit testing framework.

📚 Features

  • 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).

🚀 Installation and Running the Project

Prerequisites

  • Ensure you have git installed for cloning repositories.
  • Ensure you have CMake installed and added to your system's PATH.

Steps

  1. Clone the Repository:

    git clone https://github.com/yourusername/CGPA_Calculator.git
    cd CGPA_Calculator
  2. Install CMake:

    • Download CMake from here
    • Add the CMake binary path (e.g., C:\Program Files\CMake\bin) to your environment variables.
  3. Clone SQLiteCpp:

    cd external
    git clone https://github.com/SRombauts/SQLiteCpp.git
  4. Modify SQLiteCpp CMakeLists.txt:

    • Open CMakeLists.txt in the external/SQLiteCpp folder.
    • Change line 388 from:
      option(SQLITECPP_RUN_CPPLINT "Run cpplint.py tool for Google C++ StyleGuide." ON)
      to:
      option(SQLITECPP_RUN_CPPLINT "Run cpplint.py tool for Google C++ StyleGuide." OFF)
  5. Build the Project:

    cd ..
    mkdir build
    cd build
    cmake ..
    cmake --build . --config Release
  6. Run the Application:

    cd Release
    CGPA_Calculator_Main.exe

📷 Screenshots

Screenshot 2024-06-21 111245

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

📞 Contact

For any inquiries, please contact tiendat041202@gmail.com.


Made with ❤️ by Dat Pham

About

The CGPA Calculator is a terminal-based tool for students to manage and calculate their GPA and CGPA efficiently. Enter personal details, course units, and grades to track academic performance. Built with C++ and SQLite.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published