Get the answers you need at Westonci.ca, where our expert community is dedicated to providing you with accurate information. Experience the convenience of finding accurate answers to your questions from knowledgeable professionals on our platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.
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
Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.