Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please follow as directions given. Question 2 - 5% Write a JavaScript code that will calculate the GPA of a particular student. The following steps

image text in transcribedPlease follow as directions given.

Question 2 - 5% Write a JavaScript code that will calculate the GPA of a particular student. The following steps must be accomplished in your JavaScript code. Step 1: Ask the number of subjects Step 2: Ask the grade (A, A-, B+, B, B-, C+, F) that the student obtained for each subject. Step 3: Calculate the average point based on the input from Step 2. Remember that the average point must be within 0 to 4 value. Point Grade A A- 4 B+ 3.67 3.33 3 2.5 B B- C+ 2 F 0 Step 4: Categorize the student achievement based on the point calculated from Step 3. There are 4 categories/classes as follows: GPA Class 3.67 First Class 3.33 Second Class 2 Third Class Below 2 Under Probation *Note that if the student failed any of the subject, the class will be downgraded to 'Under Probation regardless of the GPA point Step 5: Display the GPA, status (pass or fail), and class of achievement (first class/second class/third class/under probation) of the student on the web browser

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago