Create a Web page named gpa.html that can be used to compute your grade point average given grades and hours for courses completed. The page should repeatedly prompt the user for course information, reading the course name, grade received, and credit hours for a particular course in a single dialog box. The program should continue prompting and reading in grades until the user enters an empty string to signify the end. For example,
Once the course grades have been stored, the page should compute the student's 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 grade and number of credit hours:
o A yields 4 points for each hour
o B+ yields 3.5 points for each hour
o B yields 3 points for each hour
o C+ yields 2.5 points for each hour
o C yields 2 points for each hour
o D yields 1 point for each hour
o F, AF, and WF yield 0 points for each hour
2. The grade point average (a.k.a. quality point average) is comput
Comments
Leave a comment