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.

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter6: Creating, Sorting, And Querying A Table
Section: Chapter Questions
Problem 12AYK
icon
Related questions
Question
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.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Array
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