Question: Provide static mean, median, mode and range for a set of data, please use C++ Provide static mean, median, mode and range for a set

Provide static mean, median, mode and range for a set of data, please use C++
 Provide static mean, median, mode and range for a set of

Provide static mean, median, mode and range for a set of data ication: Design a program that can calculate the mean, median, mode and range for a list of integers. (Assume the list is already sorted in ascending order.) The program contains a set of functions to perform the above data operations. Here are the calculations to these data operations: Example: the list of integers: 5,10,10,23,37,56, (assume your list is sorted in ascending order) 1. Mean (average): mean (5+10+10+23+37+56) 6 (size of the list) 23.5 2. Median: If the count of the list is odd number, use the middle value. If the count of the list is even number, then average the middle two values. median (10+23)/2-16.5 Mode: Mode is the number that appears most often in the list. 10 has 2 occurrences in the list. So, the mode is 10 in this example. Range: Range is the difference between the maximum value and the minimum value in the list. range 56-5-51 3. 4. File Name: DataOperations.cpp Functions in the Function name Return t calcMean Parameter list and (int size, int list[])->parameter list takes a size and list argument, calculate and return the mean se double of the list double (int size, int list[])->parameter list takes a size and list argument, calculate and return the median value of the list (int size, int list[])->parameter list takes a size and list argument, calculate and return the mode value of the list. You have 1 mode value in this a (int size, int list[])->parameter list takes a size and list argument, calculate and return the range of the list calcMedian calcMode int calcRange int Assignment Instructions: 1. Create a Visual Studio or Xcode project (Mac user) and name it ProjectAssignment1 2. Add a cpp file and name it FirstName LastName DataOperations.cpp. For Xcode project, rename main.cpp to FirstName LastName DataOperations.cpp. This file contains all the functions above . In your main funcrion, create two integer arrays with initialization list (The lists are provided below). Use the following data to test your code. Call each data operation function and display result const int EVEN-SIZE 10, 000 SIZE 11; int evenNumList [EVEN SIZE(5,18,19,28,21,21,21,38,49,56); int oddNumList[ODD SIZE]5,12,18,19,19, 21,31,38,41,49,56 4. 5. 6. You can create extra functions to print the results Name your variables clearly Add comments to document and code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!