• 100% Satisfaction Guarantee
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12944
Experience:  Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
29751445
LogicPro is online now

# Write a 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
◦References to sources of additional information used
◦Parameters
◦Class/Program Invariant (ensure these conditions are true)
◦Algorithm(s) used (including any special notes)

This was answered by AtlProg one year ago if that helps

Customer:

As soon as possible. I would like it done by today if possible. I see that it has been answered a few times already, so someone there might have the program in hand. But the assignment is due tomorrow.

ok I will opt-out so that other experts can have a look or maybe they have it already so you get it faster.
Thanks.

Customer:

Thanks. Not trying to boot you. Just want to make it easier for you guys. Why rewrite shakespeare when you can just reread it? I know that ALTPROG has answered it before. I just could not access the download.

Hi,
Welcome back.
I will provide you answer for this in next 2-3 hours.
Customer: replied 3 years ago.

Thank you very much! I need to run some errands and I work at 16:00, so that will be perfect.

Welcome

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.
It will ensure that question is for me.