how to do this program

students in SUP were surveyed about how many days aweek they eat fast-food.write aprogam to help analyze the result of the survey.lnitially the program prompts how many input values there are,it then reads in the specified number of values,and counts how many answers are 0 day a week, 1 day a week,etc. finally the result is displayed in a table, each row showing the number of days,the number of students that eat fast-food that many days a week,and what percentage they constitute of the total number of student surveyed.an example running session migt look like follows

how many input values are there:5
enter number of days:2
enter number of days:0
enter number of days:3
enter number of days:3
enter number of days:7
days students percentage(%)
0,1,20
1,0,0
2,1,20
3,2,40
4,0,0
5,0,0
6,0,0
7,1,20
Topic archived. No new replies allowed.