# Answer to Question #20052 in C++ for Jennifer Chau

Question #20052

Write a program that reads 20 numbers(ints or floats- your choice) from the keyboard and stores them in a 2 dimensional

array of size 4 rows X 5 columns. Your program must accomplish the following :

a. Calculate the average(float) of each row and displays the output exactly as given below. (Hint: You may need one 2-D

array of size 4 X 5 and one 1-D array of size 4(for the averages ) OR you may need one 2-D array of size 4 X 6 where the

6th column is used to store the averages).

b. Calculate the average of all these average values (e.g .average of 70.8, 75.4 77.6 and 84.8 = 77.15)

c. Find and print the largest of all the averages (e.g. largest average value for the given data is 84.8 for Summer term).

array of size 4 rows X 5 columns. Your program must accomplish the following :

a. Calculate the average(float) of each row and displays the output exactly as given below. (Hint: You may need one 2-D

array of size 4 X 5 and one 1-D array of size 4(for the averages ) OR you may need one 2-D array of size 4 X 6 where the

6th column is used to store the averages).

b. Calculate the average of all these average values (e.g .average of 70.8, 75.4 77.6 and 84.8 = 77.15)

c. Find and print the largest of all the averages (e.g. largest average value for the given data is 84.8 for Summer term).

Expert's answer

Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment