Question
develop a GPA Calculator App (using Javascript) to manage the student grades for each course. As shown in Table 1, every letter grade has a
develop a GPA Calculator App (using Javascript) to manage the student grades for each course. As shown in Table 1, every letter grade has a corresponding grade point, which constitutes the basis for calculating the GPA
Multiplying the number of credit hours assigned to a course by the Grade Point associated with the letter grade received, results in, the points earned for a course. GPA is computed by dividing the total points earned by the total number of earned hours. Here are some development steps to guide you.
1. Create GradeBook class in grade-book.js file.
a. Declare and initialize an array named gradeToLetterGrade to store the content of table 1.
b. Declare and initialize an array named students to store the content of table 2.
Note a student has the following properties: studentId, firstname, lastname, program and courses which is an array of course objects.
Note that you do not need to create student and course classes just create objects directly.
2. The GradeBook class should implement the following methods:
addCourse : Input: studentId and course object. Adds a course to the students courses.
updateCourse: Input: studentId and course object. Update students course.
deleteCourse: Input: studentId and courseCode. Delete students course.
getGPA: Input: studentId. Computes and returns the students GPA.
getAvgGPA:Returns the average GPA for all students.
getTop2Students : Returns the top 2 students with highest GPA.
3. Create app.js class to instantiate the GradeBook class and test its methods.
Note that you should make use of the JavaScript features and capabilities such as arrow functions, array functions (.map, .reduce, .filter, .splice, .sort), spread operator, object literals, classes
https://ibb.co/c4UjSx
Table 1- Grade points for grade letters Grade Symbol Grade Points 90 to 100 Very Good Very Good Good Good Pass 4.00 3.50 3.00 2.50 2.00 1.50 1.00 B+ 8510 90 80 toStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started