[Calculate grades’ average for a student] write a program that calculates the student grades’ average for a semester for the number of courses taken in that semester. Your program should do the...



[Calculate grades’ average for a student]
write a program that calculates the student grades’ average for a semester for the number of courses taken in that semester. Your program should do the following:


1.Read from user the number of courses (n)



2. Then, read the courses’ grades for
n
times (Hint: use a loop)



3.If a grade is grater than 100 or less than 0, ask the user to enter the grade again.



4.Calculate the average of grades using the following formula:



average
= (sum of grades) / n



5.Print out the average grade on the screen.



Note: Always use appropriate data types.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here