How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask LogicPro Your Own Question
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12720
Experience:  Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
29751445
Type Your Programming Question Here...
LogicPro is online now
A new question is answered every 9 seconds

Write a program that can be used to gather statistical data

This answer was rated:

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)

This was answered by AtlProg one year ago if that helps

unvadim :

Hi I can help you on this one. when do you need it to be ready?

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.

unvadim :

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
Download answer from here: Movies_Statistics_CPP.cpp

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.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.

Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions on original requirements at no extra charge and I’m always here to help.
Thank you for using JustAnswer!
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12720
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
LogicPro and other Programming Specialists are ready to help you

Related Programming Questions