- ποΈ Input your course credits and grades easily.
- π Calculates total credits, weighted points, and CGPA.
- πΎ Saves the result automatically in a
.txtfile. - π°οΈ Adds the date and time of the calculation.
- π¬ Friendly and simple command-line prompts.
- Java
- Java I/O (
FileWriter) - Java Time API (for date and time)
- Scanner Class (for user input)
- Enter your name and matric number.
- Enter the number of courses.
- For each course:
- Enter course credit.
- Enter your grade (A-F).
- View your calculated CGPA.
- Choose whether to save the result to a file.
=====================
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- 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.
Stanley Obimma Kosisochukwu
Computer Science Student | University of Nigeria, Nsukka
Pull requests are welcome! Feel free to open an issue if you want to suggest improvements.
- Added menu functionality
- April 30, 25