1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Airida [17]
4 years ago
10

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 3 × 5 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.
Engineering
1 answer:
Kryger [21]4 years ago
6 0

Answer:

#include<iostream>

using namespace std;

int main()

{

  double data[3][5],avg,least,most,total;

  int leastNum,mostNum;

  for(int i=0;i<3;i++)

  {

      cout<<"Enter quantity of food for monkey "<<i+1<<":\n";

      for(int j=0;j<5;j++)

      {

          cout<<"Day "<<j+1<<": ";

          cin>>data[i][j];

      }

  }

  least = data[0][0];

  most = data[0][0];

  for(int i = 0;i<3;i++)

  {

      for(int j = 0;j<5;j++)

      {

          total+=data[i][j];

          if(data[i][j]>most)

          {

              most=data[i][j];

              mostNum=i+1;    

          }

          if(data[i][j]<least)

          {

              least=data[i][j];

              leastNum=i+1;

             

          }

      }

  }

  avg=total/5.0;

  cout<<"Average food eaten in a day by all the 3 monkeys: "<<avg<<endl;

  cout<<"Most amount of food eaten in a day: "<<most<<" by monkey: "<<mostNum<<endl;

  cout<<"Least amount of food eaten in a day: "<<least<<" by monkey: "<<leastNum<<endl;

  return 0;

}

You might be interested in
A Class A fire extingisher is for use on general combustibles such as:​
Tatiana [17]

Answer:

used for ordinary combustibles, such as wood, paper, some plastics, and textiles. This class of fire requires the heat-absorbing effects of water or the coating effects of certain dry chemicals.

Explanation:

7 0
3 years ago
A river has an average rate of water flow of 59.6 M3/s. This river has three tributaries, tributary A, B and C, which account fo
Fiesta28 [93]

Answer:

50421.6 m³

Explanation:

The river has an average rate of water flow of 59.6 m³/s.

Tributary B accounts for 47% of the rate of water flow. Therefore the rate of water flow through tributary B is:

Flow rate of water through tributary B = 47% of 59.6 m³/s = 0.47 * 59.6 m³/s = 28.012 m³/s

The volume of water that has been discharged through tributary B = Flow rate of water through tributary B * time taken

time = 30 minutes = 30 minutes * 60 seconds / minute = 1800 seconds

The volume of water that has been discharged through tributary B in 30 seconds = 28.012 m³/s * 1800 seconds = 50421.6 m³

3 0
3 years ago
2. BCD uses 6 bits to represent a symbol. a) True b) False​
Goshia [24]

Answer:

true because BCD used 6 bits to represent a symbol .

Explanation:

mark me brainlist

4 0
3 years ago
What type of building project is most like an enhanced skills occupation?
enot [183]

Answer:

4.modifying a building to achieve an entirely new purpose

8 0
3 years ago
Direction: List down or enumerate the type of outlets you want to install on your dream house. Also indicate the quantity (in pi
Lorico [155]

Answer:

Apartment outlet 4pcs

Explanation:

6 0
3 years ago
Other questions:
  • I need solution for this question please<br>Select the right answer ​
    8·2 answers
  • What are the disadvantages of using 3D ink jet printing ??
    8·1 answer
  • Lately, you have noticed some repetitive stress in your wrist. Which sign is most likely the cause of that stress and pain?
    7·1 answer
  • 1. In order for a team to accomplish its goal(s), it is NOT important for the team members to
    14·2 answers
  • How do you build a house.
    15·1 answer
  • My teacher wants me to build a perpetual motion machine and present it. I know they don't exist, and SHE knows they don't exist
    12·2 answers
  • What material are the rocker/valve cover gaskets made out of?
    5·1 answer
  • Define Ancestor, Descendant, Siblings, Height, Depth, Root and Leaf for the
    9·1 answer
  • Which symbol should be used for the given scenario?
    11·1 answer
  • I’m in Sociology Class guys and I need help on this question!
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!