Program that includes two user-defined methods to calculate


Program that includes two user-defined methods to calculate the mean (average) and standard deviation of 5 integers.

a. The first method has five formal parameters representing x1, x2, x3, x4 and x5. It calculates the mean and returns the result.

b. The second method has five formal parameters representing x1, x2, x3, x4 and x5. It calls the first method to get the mean and then calculates the standard deviation, and finally returns the result.

c. In main method, the program asks the user to input x1, x2, x3, x4, and x5, then calls these two methods to get the results and output them.

d. Do not use global variables for this program!!!

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Program that includes two user-defined methods to calculate
Reference No:- TGS02740393

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)