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

Okay, so this is about the only question I will use my subscription for, so plea

ID: 3647289 • Letter: O

Question

Okay, so this is about the only question I will use my subscription for, so please help me good.

So, I have this question in a study guide and i need help with it,
Its only 5 options and I can do options 1 and 5 but i need help with 2,3,4

Here is the sample output:
---------------------------------------------------
2-D ARRAY PROCESSING MENU OPTIONS
---------------------------------------------------
1. Display current movie ratings
2. Show the average rating for each movie.
3. Show a reviewers highest rated movie. (enter reviewer# 0-3)
4. Show a movies lowest rating. (enter movie# 100-105)
5. Quit program

Enter your choice:1

********************* MOVIE RATINGS ****************
REVIEWER| MV#100 MV#101 MV#102 MV#103 MV#104 MV#105
****************************************************
#0 3 1 5 2 1 5
#1 4 2 1 4 2 4
#2 3 1 2 4 4 1
#3 5 1 4 2 4 2


---------------------------------------------------
2-D ARRAY PROCESSING MENU OPTIONS
---------------------------------------------------
1. Display current movie ratings
2. Show the average rating for each movie.
3. Show a reviewers highest rated movie. (enter reviewer# 0-3)
4. Show a movies lowest rating. (enter movie# 100-105)
5. Quit program

Enter your choice:2

********************* MOVIE RATINGS ****************
REVIEWER| MV#100 MV#101 MV#102 MV#103 MV#104 MV#105
****************************************************
#0 3 1 5 2 1 5
#1 4 2 1 4 2 4
#2 3 1 2 4 4 1
#3 5 1 4 2 4 2

****************************************************
Average Rating for each movie:
Movie#100: 3.75
Movie#101: 1.25
Movie#102: 3
Movie#103: 3
Movie#104: 2.75
Movie#105: 3

---------------------------------------------------
2-D ARRAY PROCESSING MENU OPTIONS
---------------------------------------------------
1. Display current movie ratings
2. Show the average rating for each movie.
3. Show a reviewers highest rated movie. (enter reviewer# 0-3)
4. Show a movies lowest rating. (enter movie# 100-105)
5. Quit program

Enter your choice:3

********************* MOVIE RATINGS ****************
REVIEWER| MV#100 MV#101 MV#102 MV#103 MV#104 MV#105
****************************************************
#0 3 1 5 2 1 5
#1 4 2 1 4 2 4
#2 3 1 2 4 4 1
#3 5 1 4 2 4 2

Enter a reviewer number (0-3), to find the Movie they rated the highest:6
That is an invalid reviewer number.
Enter a reviewer number (0-3), to find the Movie they rated the highest:3
Reviewer#3 rated Movie#100 as the highest

---------------------------------------------------
2-D ARRAY PROCESSING MENU OPTIONS
---------------------------------------------------
1. Display current movie ratings
2. Show the average rating for each movie.
3. Show a reviewers highest rated movie. (enter reviewer# 0-3)
4. Show a movies lowest rating. (enter movie# 100-105)
5. Quit program

Enter your choice:4

********************* MOVIE RATINGS ****************
REVIEWER| MV#100 MV#101 MV#102 MV#103 MV#104 MV#105
****************************************************
#0 3 1 5 2 1 5
#1 4 2 1 4 2 4
#2 3 1 2 4 4 1
#3 5 1 4 2 4 2

Enter a movie number (100-105), to find the lowest rating:107
That is an invalid movie number.
Enter a movie number (100-105), to find the lowest rating:103
Movie#103 lowest rating is 2.

---------------------------------------------------
2-D ARRAY PROCESSING MENU OPTIONS
---------------------------------------------------
1. Display current movie ratings
2. Show the average rating for each movie.
3. Show a reviewers highest rated movie. (enter reviewer# 0-3)
4. Show a movies lowest rating. (enter movie# 100-105)
5. Quit program

Enter your choice:8
INVALID CHOICE ...please retype
---------------------------------------------------
2-D ARRAY PROCESSING MENU OPTIONS
---------------------------------------------------
1. Display current movie ratings
2. Show the average rating for each movie.
3. Show a reviewers highest rated movie. (enter reviewer# 0-3)
4. Show a movies lowest rating. (enter movie# 100-105)
5. Quit program

Enter your choice:5

Array processing test now concluded. Exiting program

Explanation / Answer

//not done, but this is 1 and 2
//will look at 3 and 4 later
//not sure why it copied disregarding format

#include<iostream>#include<string>using namespace std;void movieprint(); int info[4][6]={{3,1,5,2,1,5},{4,2,1,4,2,4},{3,1,2,4,4,1},{5,1,4,2,4,2}}; int mlowest;int main(){ string wait; float avgRating[6]={0}; int option; cout<<"--------------------------------------------------- "<<"2-D ARRAY PROCESSING MENU OPTIONS "<<"--------------------------------------------------- "<<"1. Display current movie ratings "<<"2. Show the average rating for each movie. "<<"3. Show a reviewers highest rated movie. (enter reviewer# 0-3) " <<"4. Show a movies lowest rating. (enter movie# 100-105) "<<"5. Quit program ";//print out menu options cin>>option;//enter option
switch (option){ case 1://Display current movie ratings movieprint();//call function to print movie rating cin>>wait; break; case 2://Show the average rating for each movie. for(int k=0;k<6;k++){ float sum=0.00; for(int m=0;m<4;m++){ sum=sum+info[m][k]; } avgRating[k]=sum/4; } movieprint();//call function to print movie rating cout<<" ****************************************************"; cout<<" Average Rating for each movie:"; for(int n=0;n<6;n++){ cout<<" Movie#10"<<n<<": "<<avgRating[n];} cin>>wait; break; case 3://Show a reviewers highest rated movie. (enter reviewer# 0-3) movieprint();//call function to print movie rating // break; case 4://Show a movies lowest rating. (enter movie# 100-105) movieprint();//call function to print movie rating // break; case 5://quit // break; default://invalid // break; } return 0;}void movieprint(){cout<<" ********************* MOVIE RATINGS **************** "<<"REVIEWER| MV#100 MV#101 MV#102 MV#103 MV#104 MV#105 "<<"**************************************************** "; for(int i=0;i<4;i++){ cout<<"#"<<i<<" "; for(int j=0;j<6;j++){ cout<<info[i][j]<<" ";} cout<<endl;} return;}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote