Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/movie-statistic-c/
- Movie Statistic
- Write a program that can be used to gather statistical data about the number of movies
- college students see in a month. The program should ask the user how many students were
- surveyed and dynamically allocate an array of that size. The program should then allow the
- user to enter the number of movies each student has seen. The program should then calculate
- the average, median, and mode of the values entered.
- Formulas Needed:
- Median is the middle number in a range of ordered values. If the number of values is even,
- the median is the average of the middle two values.
- examples:
- (1,2,3,4,5) Median = 3
- (1,2,3,4,5,6) Median = 3.5
- Mode is a number that is repeated most often. There can be more than one mode value.
- examples:
- (13, 13, 13, 13, 14, 14, 15, 16, 17) Mode = 13
- (13, 13, 13, 14, 14, 14, 15, 16, 17) Mode = 13 and 14
- Download: http://solutionzip.com/downloads/movie-statistic-c/
Add Comment
Please, Sign In to add comment