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

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Prepare an arbitrary sinusoidal waveform

Create a program to compute the derivative of an arbitrary input function, with arbitrary duration and arbitrary limits

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  Create a program for a company named retail-mart

Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Create program that uses functions and reference parameters

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

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  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

  Computer programming using c language lab

Computer programming using c language lab

  Prepare a linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM

  Develop a two dimensional interactive game

The player starts as a disk, but can "morph" (that is expand and contract) in selected directions

  Calculate the component voltages

Calculate the component voltages for the following series resonant RLC circuit

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