c++ programming

timer Asked: Oct 13th, 2013
account_balance_wallet $5

Question Description

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 


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

Tutor Answer

School: UT Austin

I can help you with perfect way.

flag Report DMCA

Thank you! Reasonably priced given the quality not just of the tutors but the moderators too. They were helpful and accommodating given my needs.

Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors