1. Create an array of running totals of reviews for each user. (- 2. Create an array of the number of reviews for each user. 3. Read from the input file into the arrays until there are no more reviews to read. 4. Verify that the provided user ID is between 1 and 20. Skip any that are outside this range. 5. Verify that the song rating is between 0 and 100 (inclusive) and skip any rating that is outside that range. (. 6. When the entire file has been read in, display the average rating per user, one per line, with the user ID in a 4-character field and the floating-point average in an 8- character field and two decimal points of precision.

Oh no! Our experts couldn't answer your question.

Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.

Submit your question and receive a step-by-step explanation from our experts in as fast as 30 minutes.
You have no more questions left.
Message from our expert:
It looks like you may have submitted a graded question that, per our Honor Code, experts cannot answer. We've credited a question to your account.
Your Question:
  • In C++

 

 

1. Create an array of running totals of reviews for each user. (-
2. Create an array of the number of reviews for each user.
3. Read from the input file into the arrays until there are no more reviews to read.
4. Verify that the provided user ID is between 1 and 20. Skip any that are outside
this range.
5. Verify that the song rating is between 0 and 100 (inclusive) and skip any rating
that is outside that range. (.
6. When the entire file has been read in, display the average rating per user, one per
line, with the user ID in a 4-character field and the floating-point average in an 8-
character field and two decimal points of precision.
Transcribed Image Text:1. Create an array of running totals of reviews for each user. (- 2. Create an array of the number of reviews for each user. 3. Read from the input file into the arrays until there are no more reviews to read. 4. Verify that the provided user ID is between 1 and 20. Skip any that are outside this range. 5. Verify that the song rating is between 0 and 100 (inclusive) and skip any rating that is outside that range. (. 6. When the entire file has been read in, display the average rating per user, one per line, with the user ID in a 4-character field and the floating-point average in an 8- character field and two decimal points of precision.
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L