draw a flowchart and write an algorithm that will compute for the average and will read and print the names and individual scores of 100 students for a particular examination
1 Set sum to 0
2 Set i to 0
3 Read i-th student name and score
4 Add score to sum
5 Print students name and score
6 Add 1 to i
7 If i greate than 100 go to step 3
8 Calculate average as sum / 100
9 Print the average value
Comments
Leave a comment