Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.. Please solve the following in c++ please do not use any other language. 2. Please share your code. 3. Please show all outputs and

1.. Please solve the following in c++ please do not use any other language.

2. Please share your code.

3. Please show all outputs and us class to solve problems no other methods.

4. Calculate the mean and the mode only given the matrix below. I have given an example how to calculate the average. You can modify to calucate the mean and the mode.

I have also given how to calculate the mean and mode below.

Use this array for the mean and the mode calculations:

arr{33,43,79,52,59,48,7,76,61,62,68,29,49,22,0,23,68,20 }

How to calculate the average an using a c++ class example only:

#include using namespace std; class MClass { public: int n,i,arr[18]; float s=0; MClass():arr{33,43,79,52,59,48,7,76,61,62,68,29,49,22,0,23,68,20 } {} }; int main(){ //create an object for MClass MClass obj; obj.s=0; obj.i=0; obj.n=sizeof(obj.arr)/sizeof(obj.arr[0]); for(obj.i=0;obj.i

How to calculate the mean and mode and example only.

How to calculate the mean:

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"="" grades="" is="" all="" divided="" by="" grades.="" (900,="" 55,="" 200,="" 34,="" 112,="" 87,="" 256,="" 100,="" 100)="" average="----------------------------------------------------" =="" 190.9="" 10="" 2)="" "median"="" value="" located="" in="" middle="" sequence.="" if="" values="" odd,="" median,="" but="" even,="" two="" median.="" please="" note="" that="" must="" be="" sorted="" before="" this="" operation.="" sequence="" becomes:="" 900.="" since="" median="" isthe="" numbers.="" (100="" +="" 100="" 2="" 3)

How to calculate the mode.

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions