Question: This program I am trying to create is suppose to take in names (up to 20) and quiz scores (up to 10). After typing the
This program I am trying to create is suppose to take in names (up to 20) and quiz scores (up to 10). After typing the name of a student it asks to enter the number of scores based on how many quizzes there were (ex. 5 quiz score input if 5 quizzes were taken) after that it displays a table that list the student name and then their average score (one name and one score per line). Then at the bottom it's suppose to display the highest average and the lowest average.
So far I have the following: I figured it out until it asks for average of each user and the max/min value. What do I need to do from here? I tried solving for max/min but I am doing something wrong. Thank you
I have also attached an example of what the final output looks like.
#include#include #include using namespace std; int main() { const int Max_Students = 20; const int Max_Quizzes = 10; double Students[Max_Students], Quizzes[Max_Quizzes]; int numStudents = 0, numQuizzes = 0; string StudentName; double score = 0, sum = 0, average = 0; double max = -200, min = 200; cout > numStudents; cout > numQuizzes; do { for (int j = 0; j > StudentName; cin.ignore(); getline(cin, StudentName); for (int i = 1; i > score; sum += score; } for (int i = 1; i max) { max = score; } } for (int i = 1; i 20); system("pause"); return 0; }

11-20); 3 Entte nmber of studlent 1- Enter number of quizzes (1-10): 2 Enter student nameRick Flair EnteF sCOre 1: Enter score 2: Enter student name: Arn Anderson Enter SCore 1: Enterscore 2: 89 93 Enter student name : steve Aust in 81 86 71.5 91.0 83.5 91.0 71.5 score 1: Enter score 2: Rick Flair Arn Anderson Steve Austin Highest Auerage: OwesSt HUeage- Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
