Question: This is what your output should look like: ` ` ` Output - MovieRatingAggregator ( run ) run: How many ratings would you like to

This is what your output should look like:
```
Output - MovieRatingAggregator (run)
run:
How many ratings would you like to input?
5
Enter rating l (1-5):
5
Enter rating 2(1-5):
6
Enter rating 3(1-5):
9
Enter rating 4(1-5):
5
Enter rating 5(1-5):
2
The average rating is: 5.4
BUILD SUCCESSFUL (total time: 14 seconds)
|
``` Question 1
[12 marks]
You work at Pam's Phamtastic Theatre. Pam, the owner, appointed you to create a Movie Rating Aggregator. The Movie Rating Aggregator should meet the following requirements:
\begin{tabular}{|c|c|}
\hline Rating Collector & \begin{tabular}{l}
-\begin{tabular}{l}
Prompt the user to enter the \\
number of ratings they want to \\
input. \\
- Create an array to store these \\
ratings.
\end{tabular}\\
\hline Rating Input \\
Average Calculation \\
Result Output
\end{tabular}\begin{tabular}{l}
Using a for loop, ask the user to \\
input each rating (1-5) and store \\
them in the array.]
\end{tabular}\\
\hline \begin{tabular}{l}
Calculate the average rating of \\
the movie by summing up all the \\
ratings and dividing by the total \\
number of ratings.
\end{tabular}\\
\hline - Print out the average rating to the \\
user.
\end{tabular}
This is what your output should look like: ` ` `

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!