Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago