Main function that instantiates one average object and


Create a program that includes the following requirements:

Create an Average class with a public data member to collect the sum of the integer entries and a public data member to hold the double average of the sum of the 10 integers.

Public class method to get each integer number input.

Public class method to calculate the average of the numbers input.

Public class method to output the average of the numbers input.

Main( ) function that instantiates one Average object, and includes a for loop to take 10 inputs and calls to the calculation and output method.

 

Solution Preview :

Prepared by a verified Expert
Programming Languages: Main function that instantiates one average object and
Reference No:- TGS01245370

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)