Add Javascript code to the webpage below according to the comments!!! (I will be sure to upvote) CSS and Javascript
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>
Step by step
Solved in 3 steps with 1 images