Program that can be used to gather statistical data


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

Objectives Covered 

· Numbers and Objects

· Control Flow

· Using functions

· Implementing arrays

· Pointers


Final submission along with Code

Documentation & Naming Style Sheet
1.Opening Documentation: the header block (i.e. comments at the beginning of your code) should include the following: ?Program name/syntax 
?Description of what the program does 
?Summary of the problem's specifications and assumptions 
?License info (optional) 
?References to sources of additional information used 
?Parameters 
?Class/Program Invariant (ensure these conditions are true) 
?Algorithm(s) used (including any special notes 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Program that can be used to gather statistical data
Reference No:- TGS088560

Expected delivery within 24 Hours