subject

C++ You should attempt this assignment after we cover using pointers with arrays and dynamic memory allocation. There is a tutorial for this assignment since it is the first time we are using pointers
Note: You must use pointer /offset notation in this assignment instead of array notation. For example:
If you have an array named a, to access it content under subscript 3, you must write:
*(a + 3) instead of a[3]. Please note that points will be deducted if this requirements is not followed.
Movie Statistics
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:
1. Ask the user how many students were surveyed. An array of integers with this many elements should then be dynamically allocated.
2. Allow the user to enter the number of movies each student saw into the array.
3. Calculate and display the average, median, and mode of the values entered. Input validation: Do not accept negative numbers for input:
Median Function
In statistics, when a set of values is sorted in ascending and descending order, its median is the middle value. If the set contains an even number of values the median is the mean (or average) of the two middle values. The function should accept an array of integers and the size of the array. The median value should be returned as a double.
To demonstrate your pointer powers, use pointer notation instead array notation in this function.
Mode Function In statistics
The mode of set of values is the value that occurs most often or with the greatest frequency. This function should accept an array of integers and the size of the array (integer). The function should determine the mode of the array. That is, it should determine which value in the array occurs most often. The mode is the value the function should return. If the array has no mode, (none of the values occur more than once), the function should return -1.
Average Function
We have written functions like that before. It should return a double value that is the average of the array elements. To demonstrate your pointer powers, use pointer notation instead array notation in this function.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 05:20
What did creator markus “notch" persson initially call his game
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
You know the right answer?
C++ You should attempt this assignment after we cover using pointers with arrays and dynamic memory...
Questions
question
Mathematics, 13.09.2019 05:30
Questions on the website: 13722361