[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 forntimes (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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here