Answer:
The pseudocode is as follows:
Input coursename, numgrades
count = 1; totalgrades = 0
while count <= numgrades:
input grade
totalgrade+=grade
count++
average = totalgrade/count
print(coursename)
print(average)
Step-by-step explanation:
The solution is as follows:
(1) See attachment for flowchart
(2) See answer section for pseudocode
Explanation
Input coursename and number of grades
Input coursename, numgrades
Initialize count of grades input by the user to 1 and the sum of all grades to 0
count = 1; totalgrades = 0
This loop is repeated while count of grades input by the user is less than or equal to the numgrades
while count <= numgrades:
Input grade
input grade
Add grades
totalgrade+=grade
Increase count by 1
count++
End of loop
Calculate average
average = totalgrade/count
Print coursename
print(coursename)
Print average
print(average)
C. Summary of the flowchart
The flowchart gets coursename and the number of grades from the user. Then it gets the score of each grade, add them up t calculate the average of grades.
Lastly, the course name and the average grades is printed