Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Get immediate and reliable solutions to your questions from a knowledgeable community of professionals on our platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.
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
We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. We hope this was helpful. Please come back whenever you need more information or answers to your queries. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.