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

Reviews

Write a Review

 

C/C++ Programming Questions & Answers

  Describe the probability of the moves

Write a program in C++ to describe the Probability of the moves

  Write a program that inputs a dollar amount to be printed

Write a program that inputs a dollar amount to be printed on a check and then prints the amount in check-protected format with leading asterisks if necessary

  Computer programming techniques

Construct a program from a design and use appropriate functions

  Design a nested program

How many levels of nesting are there in this design?

  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.

  Create a program that maintains the required book catalog

Create a program that maintains the required book catalog for the circulation desk of a library.

  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..

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Model-view-controller

Explain Model-View-Controller paradigm

  Operating system and cpu scheduling

Operating System and CPU Scheduling

  Calculate the trajectory of a soccer ball

Write a program to calculate the trajectory (flight path) of a soccer ball

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