Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ please 1. Write a program that prompts the user to enter five test grades. Store each test grade in an array. After the grades
C++ please
1. Write a program that prompts the user to enter five test grades. Store each test grade in an array. After the grades are entered, use a for loop to compute the sum and then compute the average grade from the sum.
2. Modify problem 1 so that you also have a second array of strings that stores the student's names. This array should parallel the grade array so that the first student's name is in position 0 of the names array and their test score is in position 0 of the grades array, and continue this for the rest of the students. Write a for loop that displays each student's name along with their grade.
3. Write a program that takes the grades entered in Problem 1 and displays the grades in reverse order.
4. Using random number generation, write a program that stores 100 values from 1 to 100 in an array. Display the array to the user. Prompt the user to enter a value that occurs in the array and then have the program count the number of times the value is found in the array. Display the final count.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started