Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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; }

image text in transcribed

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

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

Step: 3

blur-text-image

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions