Answered step by step
Verified Expert Solution
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
Please 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 browserStep 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