Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š CGPA Calculator (Java)

✨ Features

  • πŸ–ŠοΈ Input your course credits and grades easily.
  • πŸ“Š Calculates total credits, weighted points, and CGPA.
  • πŸ’Ύ Saves the result automatically in a .txt file.
  • πŸ•°οΈ Adds the date and time of the calculation.
  • πŸ’¬ Friendly and simple command-line prompts.

πŸ› οΈ Built With

  • Java
  • Java I/O (FileWriter)
  • Java Time API (for date and time)
  • Scanner Class (for user input)

πŸ“Έ How It Works

  1. Enter your name and matric number.
  2. Enter the number of courses.
  3. For each course:
    • Enter course credit.
    • Enter your grade (A-F).
  4. View your calculated CGPA.
  5. Choose whether to save the result to a file.

🎯 Example (Command Line)

=====================
This is a CGPA Calculator
WARNING!!!
The results of this calculation would be saved in a txt file on your computer
--------
Developed by Stanley Obimma
====================
Enter Your name: Stanley
Enter your matric number: CSC/2021/12345
Enter number of courses: 3
<===Course 1===>
Enter credit: 3
Enter grade: A
<===Course 2===>
Enter credit: 2
Enter grade: B
<===Course 3===>
Enter credit: 1
Enter grade: C
============================
Your CGPA is 4.33
============================
Do you want to save the file? (Reply with yes or no)
yes
Result saved successfully at Stanley.txt

πŸš€ Future Improvements

  • Add GPA calculation per semester.
  • Add a graphical user interface (GUI) using Java Swing.
  • Connect with a database to store multiple records.
  • Improve input validation for extra reliability.

πŸ™ŒπŸ½ Author

Stanley Obimma Kosisochukwu
Computer Science Student | University of Nigeria, Nsukka

πŸ“’ Wanna Contribute?

Pull requests are welcome! Feel free to open an issue if you want to suggest improvements.

πŸŽ‰ Thanks for checking out my project!

UPDATES

  1. Added menu functionality
    • April 30, 25

About

This is a simple command line app that calculates the cummulative grade point average of students.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages