Question: This program needs to be working with C++. It should be solved with using classes and reading from a file which contains this 33
This program needs to be working with C++. It should be solved with using classes and reading from a file which contains this " 33 43 79 52 59 48 7 76 61 62 68 29 49 22 0 23 68 20". If it's not solved with Classes and read from this file, it's useless. I already posted twice. Thank you.
This project involves working with a set of discrete data and determining their average (arithmetic mean), median, mode, and range. In brief, these operations are explained below. You should sort the set before any of this operation. Given a set of the following discrete numbers/grades: 900, 55, 200, 34, 112, 55, 87, 256, 100, 100
1) The "average" or "arithmetic mean" of the grades is the sum of all grades divided by the number of the grades. (900, 55, 200, 34, 112, 55, 87, 256, 100, 100) average = ---------------------------------------------------- = 190.9 10
2) The "median" is the value located in middle of the sequence. If the number of values is odd, the middle value is the median, but if the number of values is even, the average of the two middle values is the median. Please note that the number must be sorted before this operation. The sorted sequence becomes: 34, 55, 55, 87, 100, 100, 112, 200, 256, 900. Since the number of values here is even, the median isthe average of the two middle numbers. (100 + 100) median = ------------- = 100 2
3) The "mode" is the values with more than one frequency. If the set doesnt feature a frequency, then there is no mode in the sequence. For a value to be considered, it must occur more than once. If there are values with the same frequency, those values are said to be the mode. Given the sequence: 34, 55, 55, 87, 100, 100, 112, 200, 256, 900. We have two numbers with the same frequencies and the are 55 and 100.
4) The "range" is the difference between the highest and lowest values. The highest grade in our example is 900 and the lowest is 34. range = 900 - 34 = 866
Requirements This is an Object Oriented Programming (OOP) problem; therefore, you should solve the problem using classes.
You should read the data from the input file provided along with this project.
Your code must be properly documented and formatted.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
