Whether you're a student or a professional, IDNLearn.com has answers for everyone. Join our interactive Q&A community and get reliable, detailed answers from experienced professionals across a variety of topics.
Sagot :
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)
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
Your participation means a lot to us. Keep sharing information and solutions. This community grows thanks to the amazing contributions from members like you. Your questions find answers at IDNLearn.com. Thanks for visiting, and come back for more accurate and reliable solutions.