Average amount of food eaten per day by the whole family of


While researching two-dimensional array I discovered this intriqing example question and have a curiousness of how such a C++ program would be coded. Can someone please show how the source code and any output would look like?

A local zoo wants to keep track of how many pounds of food each of its three monkeys eats each day during a typical week. Code a program that stores this information in a two-dimensional 3 x 7 array, where each row represents a different monkey and each column represents a different day of the week.

The program should first have the user input the data for each monkey.

Then it should output a report that includes the following information: 

  • Average amount of food eaten per day by the whole family of monkeys 
  • The least amount of food eaten during the week by any one monkey 
  • The greatest amount of food eaten during the week by any one monkey

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Average amount of food eaten per day by the whole family of
Reference No:- TGS02868586

Now Priced at $15 (50% Discount)

Recommended (94%)

Rated (4.6/5)