Question
Write a C++ program to help your professor to compute the average grade for each student in a class. Your program must ask the professor
Write a C++ program to help your professor to compute the average grade for each student in a class.
Your program must ask the professor to enter a number of students and quizzes first. Secondly, read grades per each student as shown in the sample output. Calculate and print the average grades for each student.
Sample i/p:
Enter number of Students: 4
Enter number of Quizzes: 3
Enter Quiz grades for student 1 : 2 7 9
Average grade for student 1 is 6
Enter Quiz grades for student 2 : 3 2 1
Average grade for student 2 is 2
Enter Quiz grades for student 3 : 5 2 9
Average grade for student 3 is 5.33333
Enter Quiz grades for student 4 : 6 9 1
Average grade for student 4 is 5.33333
DO NOT USE ARRAYS
YOU CAN USE NESTED LOOPS OR MULTIWAY STATEMENTS
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started