GPA Calculator with JavaScript