Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am having alot of trouble with parallel arrays. The problemthat I just cannot

ID: 3619170 • Letter: I

Question

I am having alot of trouble with parallel arrays. The problemthat I just cannot figure out is: Create a program that has 2 parallel arrays of size 5. In thefirst array, initialize the array with 5 students names: Bob, Mary,Mike, Joe, and Susan. In the second array, initialize the arraywith these test score averages: 95, 80, 90, 65, 92. When runningthe program, the user will be prompted to enter a number between 1and 5. If the number entered is 1, the program should print"Student 1 is Bob, who has a test score average of 95". If thenumber entered is 2, the program should print "Student 2 is Mary,who has a test score average of 80", etc. If the user doesn't enter1,2,3,4, or 5, display an error message. I am having alot of trouble with parallel arrays. The problemthat I just cannot figure out is: Create a program that has 2 parallel arrays of size 5. In thefirst array, initialize the array with 5 students names: Bob, Mary,Mike, Joe, and Susan. In the second array, initialize the arraywith these test score averages: 95, 80, 90, 65, 92. When runningthe program, the user will be prompted to enter a number between 1and 5. If the number entered is 1, the program should print"Student 1 is Bob, who has a test score average of 95". If thenumber entered is 2, the program should print "Student 2 is Mary,who has a test score average of 80", etc. If the user doesn't enter1,2,3,4, or 5, display an error message.

Explanation / Answer

please rate - thanks #include using namespace std; int main() {int scores[5]={95, 80, 90, 65, 92}; string name[5]= {"Bob","Mary","Mike","Joe","Susan"}; int n; coutn; while(n!=-999)      {while(n5)         {coutn;          }      cout