Question: Problem 2 : Present Statistical Information Building upon the foundation of Problem 1 , extend the program to provide viewers with a further statistical breakdown
Problem : Present Statistical Information
Building upon the foundation of Problem extend the program to provide viewers with a further statistical breakdown of their collective ratings. Write the body of the program called Problem that reads viewer ratings the same as in Problem and compute and print out the total number of votes in each level of rating and its corresponding percentage value.
Input
The input format is the same as in Problem
Processing
The program should count the total number of votes in each level of ratings, eg how many star votes. Furthermore, the percentage of votes in each corresponding rating level should be calculated by considering the number of votes in each level of ratings divided by the total number of votes.
Output
The program should print out five lines with vote count and percentage information for each rating level respectively. The output has the following format:
star votes,
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
