I am struggling to write this program and would like to ask if anyone would like to help me out:
In a survey, people were asked to rate a video on meat preaparation a scale from 1 to 10. There were 40 responses (ratings from 1 to 10).
I am trying to write a program to
1) enter the 40 values (standard input),
2) using an array, store the frequency of each response, and
3) after the 40 values have been entered, display the number of each response. I am looking at an example output to look like the following:
Meat Preparation Survey Responses:
1 – 7 responses
2 – 2 responses
3 – 8 responses
4 – 1 response
5 – 0 responses
6 – 3 responses
7 – 4 responses
8 – 6 responses
9 – 5 responses
10 – 4 responses