Write a program that will be used to gather statistical data

Assignment Help C/C++ Programming
Reference no: EM131920

Write a program that will 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 shows 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 operating Insertion Sort.

- Show the sorted array 10 numbers per line.

- Determine 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; if the array has no mode, the mode is -1.

Insertion Sort using pointer and display the sorted array 10 numbers per line using a pointer

Calculate average using a pointer and median

Determine the mode

Reference no: EM131920

Questions Cloud

Case study - choose a public inquiry : Effective time management forms part of the assessment criteria
Prepare a web application : Prepare a web application that will be used to keep track of patients registering in a hospital.
Demonstrate the influence of environmental and behavioural : Demonstrate the influence of environmental and behavioural factors on structure, corporate size and strategy
What is bill''s opportunity cost of producing one hat : What is Bill's opportunity cost of producing one hat, In which of the two activities does Mary have a comparative advantage.
Write a program that will be used to gather statistical data : Write a program that will be used to gather statistical data about the number of movies
Create a viral marketing video of antique products : Create a viral marketing video of antique products
Problem of the book assuming that the utility is cobb-dougla : Consider the problem of the book assuming that the utility is Cobb-Douglas (U (C, l) = C α l β )
Coordination of the activities of a business : The organization and coordination of the activities of a business in order to achieve defined objectives.
Ethics assessment - ethics research tom denigan : Ethics Assessment - Ethics Research Tom Denigan

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

  Write two short c programs and solve exam-style problem

Write two short C programs and solve four exam-style problems.

  Prepare an accounting for a dorm''s kitchen

The "purpose" of the program is to prepare an accounting (database) for e.g. a dorm's kitchen, to keep track of the consumption of beer for each room.

  Uml diagram of all the classes

Speaking of converting into the correct object-type, the goal of the factory is to abstract away object creation.

  Write a program to calculate existing angles

Write a program to calculate existing angles and do if and then from this, and to place fixed angles at certain position.

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  Write a menu-driven program that maintains an address book

Write a menu-driven program that maintains an address book using a linked list. The address book must supports the following operations

  Public transport fare ticketing system

Implement and test a public transport fare ticketing system.

  Design a nested program

How many levels of nesting are there in this design?

  Iterative programming problem solving approaches

Write a recursive function void reverse ( ) that reverse a sentence

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Implementation of sorting technique

Implementation of sorting technique

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd