I am really new to c++, this may be an easy program for some, but i don't know how to do the tests part. Here is the question....
--"Write a “Class Average” program using a for loop that reads in the test marks for each student in a class and displays the average mark for the class. To create this program, please follow the steps below:
• Before the for loop:
o Declare and initialize the needed variables.
o Display the title of the program: Class Average
o Prompt the user for the number of tests that they wish to enter.
• Do the following Inside the for loop:
o Prompt the user to enter the mark test #1 where the value 1 is obtained from the variable that you initialize in your for loop.
o Sum the test marks.
• After the loop, display the following:
o The class average.
o If the class average is 85 or above, display the message “The class average is excellent”.
o If the class average is between 70 and 84, inclusive, display the message “The class average is good.”
o Otherwise display the message “No comment.”
Formulas: Average = Sum of the Marks / Number of Tests
Data Types: Use the integer data type for the count of the number of tests, and the double data type for the marks.
Output: This program’s output should look similar to:
Class Average
How many tests do you want to enter? 4
Enter the mark for test #1: 70
Enter the mark for test #2: 65
Enter the mark for test #3: 80
Enter the mark for test #4: 95
The average mark for the tests is 77.50
The class average is good."--