Question: ( Name this program StuPreInputStats ) Write a program that takes any number of non - negative integers as input, and output statistics on the
Name this program StuPreInputStats Write a program that takes any number of nonnegative
integers as input, and output statistics on the data. A negative integer ends the input and is not
included in the statistics. The numbers are ratings on a recently released video game and should be in
the range of Assume there will be at least one rating input. The statistics generated by the
program should include the total number of ratings entered, and the number and percentage of each
of the following types of ratings:
Liked: rating is or
Neutral: rating is
Disliked: rating is in ~
Invalid: Invalid data may exist due to input errors.
Here is a sample run of this program green italic text indicates user input:
Please enter the ratings end with a negative value:
Total # of ratings:
Positive ratings ~:
Neutral ratings :
Negative ratings ~:
Invalid ratings :
Another sample run with data entered one at a line:
Please enter the ratings end with a negative value:
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
