How I Built a Real-Time CGPA Calculator using JavaScript and Firebase
Source: Dev.to

Solving the Student Grading Headache 🎓
As a Software Engineering student, I realized that tracking specific grades and calculating CGPA across different semesters was a hassle. Spreadsheets are boring, and manual calculation is prone to errors.
So, I built AcademiaTrack—a web‑based solution to solve this problem.
🛠️ The Tech Stack
- Frontend: HTML5, CSS3, JavaScript
- Styling: Tailwind CSS (for a modern, clean UI)
- Backend/Database: Firebase (to store user scores securely)
🚀 Key Features
- Real‑time Calculation: The logic updates your CGPA instantly as you input grades.
- Data Persistence: Thanks to Firebase, students can log out and come back to their saved data.
- Responsive Design: Works perfectly on mobile phones, where most students check their results.
💻 The Code
One of the biggest challenges was handling the weighting system for different courses. I used JavaScript array methods to map through the input fields and calculate the weighted average dynamically.