Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Build a basic html website with the following scenario using the provided javascript. using this provided function: function gpacalc() { var grade = new Array(9);

Build a basic html website with the following scenario using the provided javascript.

image text in transcribedimage text in transcribed

using this provided function:

function gpacalc() { var grade = new Array(9); var credit = new Array(9); var getGrade = new Array(5); var getCredit = new Array(5); var gradeCount = 12; grade[0] = "A+"; credit[0] = 4; grade[1] = "A"; credit[1] = 4; grade[2] = "A-"; credit[2] = 3.7; grade[3] = "B+"; credit[3] = 3.3; grade[4] = "B"; credit[4] = 3; grade[5] = "B-"; credit[5] = 2.7; grade[6] = "C+"; credit[6] = 2; grade[7] = "C-"; credit[7] = 1.7; grade[8] = "D+"; credit[8] = 1.3; grade[9] = "D"; credit[9] = 1; grade[10] = "D-"; credit[10] = 0.7; grade[11] = "F"; credit[11] = 0.0; getGrade[0] = document.calcGpaForm.grade1.value; getGrade[0] = getGrade[0].toUpperCase(); getGrade[1] = document.calcGpaForm.grade2.value; getGrade[1] = getGrade[1].toUpperCase(); getGrade[2] = document.calcGpaForm.grade3.value; getGrade[2] = getGrade[2].toUpperCase(); getGrade[3] = document.calcGpaForm.grade4.value; getGrade[3] = getGrade[3].toUpperCase(); getGrade[4] = document.calcGpaForm.grade5.value; getGrade[4] = getGrade[4].toUpperCase(); getGrade[5] = document.calcGpaForm.grade6.value; getGrade[5] = getGrade[5].toUpperCase(); getCredit[0] = document.calcGpaForm.credit1.value; getCredit[1] = document.calcGpaForm.credit2.value; getCredit[2] = document.calcGpaForm.credit3.value; getCredit[3] = document.calcGpaForm.credit4.value; getCredit[4] = document.calcGpaForm.credit5.value; getCredit[5] = document.calcGpaForm.credit6.value; var totalGrades =0; var totalCredits = 0; var GPA = 0; var i = 0; for (i; i

function copyRight() { var lastModDate = document.lastModified; var lastModDate = lastModDate.substring(0,10); }

Your GPA 2 Calculating Personal Quite often, students like to track their own semester GPA. Check with your school, but most schools that use a plus/minus grade system assign the following values to letter grades: A+4, A 4,A-3.7, B+33, B = 3, B-=2.7, C+ = 2, C-=1.7, D+ = 1.3, D = l, D-=7,F-0, Grades ofw, 1, P are not calculated in a GPA. Create a form that allows you to enter from four to six courses. For each course have a text box o accept the letter grade. Next to the letter grade, have a text field that accepts the credit hours for the course. Include Calculate GPA and Reset buttons. When you click the Calculate GPA button, the JavaScript function needs to verify that a valid grade letter has been entered and then accumulate the number of grade points. At the same time, you need to accumulate the credit hours

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

What challenges do you face in your current role?

Answered: 1 week ago