Question: Assignment 1: JavaScript Programming The total number of grade points earned by this studentis (3.5 3)43(2.5344)4 3) 10.5 + 12 + 7.5 + 16 +

Assignment 1: JavaScript Programming The total number of grade points earned by this studentis (3.5 3)43(2.5344)4 3) 10.5 + 12 + 7.5 + 16 + 12 = 58 Create a Web page named gpa.html that can be used to compute your grade point averagegiven grades and hours for courses completed. The page should repeatedly promptthe user for course information, reading the course name, grade received, and credit hours for a particular course in a single dialog bax. The program should continue promptingand reading in grades until the user enters an empty string to signify theend. For example, Dividing this total by the number of credit hours completed yields a GPA of 58/16 3.625. Your pageshould display the total number of grade points, number or hours, and GPA, as well as all of the course information in a readable form. This information should not be displayed in the page until all user input has been processed. For example, Explorer User Prompt Script Prompt Enter course name, grade, and credt hours leg. "CSC551 B+3), or click OK oK Cancel no data to teminate THL100 B+ 3 PHL107 A 3 ENG120 C+ 3 MTH245 A 4 CSC221 A3 Once the course grades have been stored, the pageshouldcompute the students overall GPA. The grade point averages are computed as follows: 1. Grade points (a.k.a. quality points) are assigned to each course based on the gradeand number of credit hours: Total grade points 58 Number of hours 16 a A yields 4 points for each hour a B+ yields 3.5 points for each hour a B yields 3 points for each hour GPA 3.625 C+ yields 2.5 points for each hour Hint For processing the information on each course, you should utilize thestring method split, which splits astring into an array of substrings. For example, inespits]/)will return an array of substrings of line, using whitespace (s) as a delimiter C yields 2 points for each hour a D yields 1 point for each hour a F, AF, and WFyield 0 points for each hour 2. Thegrade point average (a.k.a. quality point average) is computed by dividing the total number of grade points earned by the total number of credit hours. For example, suppose a studententered the following course information (with each line entered in a different dialog box): THL100 B+ 3 PHL107A 3 ENG120. 3 A5C221 A 3 Activa
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
