Question: Question 1 [ 1 2 marks ] You work at Pam's Phamtastic Theatre. Pam, the owner, appointed you to create a Movie Rating Aggregator. The
Question
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:
tableRating Collector,table
tablePrompt the user to enter thenumber of ratings they want toinput
tableCreate an array to store theseratingsRating InputAverage CalculationResult Output,tableUsing a for loop, ask the user toinput each rating and storethem in the array.tableCalculate the average rating ofthe movie by summing up all theratings and dividing by the totalnumber of ratings.
tablePrint out the average rating to theuser
This is what your output should look like:HSYDJulDecSARRV
tableReview Collector,tableThe program prompts theuser to enter the numberof ratings they want toinputAn Array was created tostore those ratings. marksRating Input,tableA for loop was used,asking the user to inputeach rating and storethem in an array. marksAverage Calculator,tableThe program calculatesthe average rating of themovie by summing up allthe ratings and dividing bythe total number of ratings marksResult Output,tableThe average rating isprinted out in the console. marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
