Question: Program 2 ( Use two dimensional array ) Monkey Business A local zoo wants to keep track of how many pounds of food each of
Program Use two dimensional array
Monkey Business
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. Write a program that
stores this information in a twodimensional 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 create 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
SAMPLE RUN RESULTS
Enter pounds of food eaten by monkey # on
day :
day :
day :
day :
day :
day :
day :
Enter pounds of food eaten by monkey # on
day :
day :
day :
day :
day :
day :
day :
Enter pounds of food eaten by monkey # on
day :
day :
day :
day :
day :
monkey. Then it should create 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
SAMPLE RUN RESULTS
Enter pounds of food eaten by monkey # on
day :
day :
day :
day :
day :
day :
day :
Enter pounds of food eaten by monkey # on
day :
day :
day :
day :
day :
day :
day :
Enter pounds of food eaten by monkey # on
day :
day :
day :
day :
day :
day :
day :
Average amount of food eaten per day
by the entire family of monkeys pounds.
Least amount of food eaten during the week
by any one monkey pounds.
Greatest amount of food eaten during the week
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
