Time remaining:
c++ programming

label Programming
account_circle Unassigned
schedule 0 Hours
account_balance_wallet $5

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 perform the following steps: 

 Read integers from movies.txt into a dynamically allocated array. The first 

number in movies.txt represents the number of students participating in this 

survey. The rest of the numbers represent the number of movies each student saw. 

 Sort the array in ascending order using Insertion Sort. 

 Display the sorted array 10 numbers per line. 

 Calculate and display the following: 

o Average 

o Median: the value in the middle of a sorted array; if the array contains an 

even number of elements, the median is the average of the two middle 

elements. 

o Mode: the value that occurs most often (with the greatest frequency); if the 

array has no mode (none of the value occurs more than once), the mode is 

-1. If there is more than one mode, return one of them. For a more 

challenging assignment, store all values with the highest frequency in a 

dynamically allocated array


Oct 13th, 2013
I can help you with perfect way.
Oct 13th, 2013

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Oct 13th, 2013
...
Oct 13th, 2013
Jun 22nd, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer