Write a C++ program that will calculate the average of each student, as well as the class average.
In a Loop, either a While, or Do/While you will input three test scores for each student. Output the student’s average, and then start with the next student.
I need help with this??
Create the code that produces the following output.
#include <iostream>
usingnamespace std;
int main()
{
//Initialize integers for: Player 1, Player 2, and Player 3.
//They'd probably want three integer variables to hold their scores or an array of 3 each.
//You'd probably want to initialize two counters; set to zero.
//To control the outer loop and inner loop.
do
{
do
{
//Ask the user for her score:
//Record the score.
//Use a counter to break this loop; possibly increment counter here.
}while(/*Argument equals true*/);//possibly 3 prompts for each student
//You should print out her scores and average.
//Average equals Total divided by the number of prompts
//Use the other counter to break this loop; dependent on number of students.
}while(/*Argument equals true*/);//Cycle dependent on how many students there are.
return 0;
}