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 2(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 two-dimensional 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 #1 on
day 1: 3.4
day 2: 3.7
day 3: 3.1
day 4: 3.2
day 5: 3.5
day 6: 3.1
day 7: 3.2
Enter pounds of food eaten by monkey #2 on
day 1: 2.6
day 2: 2.5
day 3: 2.5
day 4: 2.4
day 5: 2.6
day 6: 2.5
day 7: 2.5
Enter pounds of food eaten by monkey #3 on
day 1: 3.9
day 2: 4.0
day 3: 4.1
day 4: 4.0
day 5: 3.8
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 #1 on
day 1: 3.4
day 2: 3.7
day 3: 3.1
day 4: 3.2
day 5: 3.5
day 6: 3.1
day 7: 3.2
Enter pounds of food eaten by monkey #2 on
day 1: 2.6
day 2: 2.5
day 3: 2.5
day 4: 2.4
day 5: 2.6
day 6: 2.5
day 7: 2.5
Enter pounds of food eaten by monkey #3 on
day 1: 3.9
day 2: 4.0
day 3: 4.1
day 4: 4.0
day 5: 3.8
day 6: 3.7
day 7: 4.0
Average amount of food eaten per day
by the entire family of monkeys =9.76 pounds.
Least amount of food eaten during the week
by any one monkey =17.6 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!