Add Javascript code to the webpage below according to the comments!!! (I will be sure to upvote) CSS and Javascript

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter9: Getting Started With Javascript: Creating A Countdown Clock
Section: Chapter Questions
Problem 11CP1
icon
Related questions
Question

Add Javascript code to the webpage below according to the comments!!! (I will be sure to upvote)


<!DOCTYPE html>
<html>
<head>
<title> CSS and Javascript </title>
</head>
<body>
<script language = "javascript" type = "text/javascript">
<!--
/*******
add Javascript code according to the requirements below:
calculates the total score of a student taking CSC101. The course includes:
- two quizzes - the full score of each quiz is 10 points, and the weight is 5%.
- four assignments - the full score of each assignment is 100 points, and the weight is 5%.
- a mid ex - the full score is 50, and the weight is 10%.
- a fin ex - the full score is 100, and the weight is 40%.
- a project - the full score is 20, and the weight is 20%.
- use a if..else if..else statements to decide the letter grade. The rules are below:
- if 0<=grade<60 fail
- if 60<=grade<70) D
- if 70<=grade<80) C
- if 80<=grade<90) B
- if 90<=grade<=100) A
- use a switch statement to print a statement. The rules are below:
- if fail, print “try again”
- if D, print “not so bad”
- if C, print “acceptable”
- if B, print “good”
- if A, print “very good”
*******/
//-->
</script>
</body>
</html>

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning