Home / Javascript / Calculate average and grades

Write a JavaScript program to calculate the average score of the following students. This average score is then used to determine the category.

Student Score
David 80
Vinoth 77
Divya 88
Ishitha 95
Thomas 68

Define the type as follows:

Conditions Type
<60 F
<70 D
<80 C
<90 B
<100 A

Example:

JavaScript: Compute the average and grade of the students

Source code:


<html>
<head>

Compute the average marks and grade


</head>
<body>
  
</body>
</html>

View example

 

Algorithm flow chart:

Flowchart: JavaScript:- Compute the average and grade of the students

Did you find this article helpful?

Support the author so they can write more quality articles!

Tư vấn lộ trình CNTT 🤖