Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2D Array, Please do not use concepts more advanced than basic 2D Arrays. (C++) 1. Create a 2D array of double test grades in main

2D Array, Please do not use concepts more advanced than basic 2D Arrays. (C++)

image text in transcribed

1. Create a 2D array of double test grades in main with 4 students 2 tests each in main. Students should be the rows, and grades should be the columns (exactly like 2D Array Practice). 2. Write a function that loads the scores, but unlike 2D array practice, you will ask them to enter all the scores for a single test before going on to the next test. For example, the prompts would end up looking something like this: Enter student O's test score: 90 Enter student 1's test o score: 89 Enter student 2's test score: 78 Enter student 3's test score: 91 Enter student O's test 1 score: 88 Enter student 1's test 1 score: 44 Enter student 2's test 1 score: 97 Enter student 3's test 1 score: 23 Notice how before, we entered all the quiz scores for a single student. Now, we enter all the scores for a single test. 3. Copy printArray from 2D Array Examples and modify the NUM_QUIZZES variable to the correct one you are using. After calling the function you just wrote from main, call printArray to verify the array is being loaded correctly. The correct output for the above entries would look like this: Index 0 1 090.00 88.00 1 89.00 44.00 2 78.00 97.00 3 91.00 23.00 4. Create a function that prints the maximum score for each test. Go back to ws 8.2 Part 2 to remind you how to create a maximum value. Remember, for all of these algorithms, you want to put the 1D algorithm inside the outer loop. From the above data, the output would be: Test O's max score is 91 Test 1's max score is 97 5. Finally, create a function that prints the minimum score each student got overall. From the above data the output would be: Student O's worse score was 88 Student 1's worse score was 44 Student 2's worse score was 78 Student 3's worse score was 23 As always, test your code standalone, then when you think it is working, test it with the tests. Watch out! The tests include cases where all the scores are negative and all the scores are better then 100

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

More Books

Students also viewed these Databases questions