Try to write pseudocode and create a flowchart for a program that calculates the average of three grades and prints the average.
The word GOOD should be printed only if the average is more than 80.
1 Read grade1
2 Set sum equal grade1
3 Read grade2
4 Add grade2 to sum
5 Read grade3
6 Add grade3 to sum
7 Set avg_grade equal sum / 3
8 If avg_grade is greater than 80
9 Print "GOOD"
10 Exit
Comments
Leave a comment