Write an algorithm and flowchart that will accept score of 30 student in a class calculate and print the average mark in basic program.

write a program in C to input the marks of 30 student and print the sum and average of their marks

Hua nhi

Algorithm:

1. Start the program.
2. Declare a variable named "sum" and set it to 0.
3. Declare a variable named "count" and set it to 0.
4. Declare a variable named "score" to store each student's score.
5. Use a loop to iterate 30 times for each student.
5.1. Prompt the user to input the score of the student.
5.2. Add the score to the "sum" variable.
5.3. Increment the "count" variable by 1.
6. Calculate the average score by dividing the "sum" variable by "count".
7. Print the average score.
8. End the program.

Flowchart:
```
+-----------------+
| START |
+-----------------+
|
V
+-----------------+
| Initialize |
| sum = 0 |
| count = 0 |
+-----------------+
|
V
+-----------------+
| LOOP |
| 30 times |
+-----------------+
|
V
+-----------------+
| Get score |
| Add to sum |
| Increment |
| count |
+-----------------+
|
V
+-----------------+
| Calculate |
| average |
+-----------------+
|
V
+-----------------+
| Print |
| average |
+-----------------+
|
V
+-----------------+
| END |
+-----------------+
```

is to make my assignment

Write algorithm to calculate the average of course in University

Compute and print the average grade of fifty (50) students in flowchart

dsc

start

input score

Write an algorithm to calculate the average height of 10 student in a 9 grade class

ANSWER