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
5) /
Tpy6a [65]

Answer:

I don't understand...

4 0
3 years ago
Write down one metal or alloy that is best suited for each of the following applications:
777dan777 [17]

Answer:

Explanation:

a. Cast iron or Aluminium alloy are typically used. Aluminium is much lighter in weight and it can transfer heat better to the coolant. While Cast Iron is typically stronger and is thus still used by the manufacturers.

b. Copper can be used as a condensing heat exchanger for hot steam due to its optimal thermal properties and its ability to resist corrosion.

c. high-speed steel are perfect for producing drill bits because of its hardness and resistance to heat to an extent. Drill bits tend to produce heat as a result of the friction between it and the material to be drilled.

d. lead can be used as a container for strong acids because of its anti-corrosive properties

e.zinc and copper can be used as fuel in pyrotechnics mainly due to the fact that burn with refreshing colours. Aluminium can also be used.

f. Platinum is the metal that best suits this purpose because of its high melting point and resistivity to oxidation.

6 0
3 years ago
Leland wants to work in a Production career operating heavy machinery. Which type of education or training should Leland seek?
zhenek [66]

Answer:

it is indeed C

Explanation:

4 0
3 years ago
Read 2 more answers
How can statistical analysis of a dataset inform a design process
Shtirlitz [24]

Answer:

Explanation:.

3 0
3 years ago
A common process for increasing the moisture content of air is to bubble it through a column of water. The air bubbles are assum
likoan [24]

Answer:

Explanation:

Assumptions is that

1. The flow is an unsteady one

2. Bubbles diameter is constant

3. The bubble velocity is slow

4. There is no homogenous reaction

5. It has a one dimensional flux model along the radial direction

5 0
3 years ago
Other questions:
  • Dr. Thermo, only has one bottle of neon. However, he needs to run two experiments, each requiring its own bottle. Therefore, he
    13·1 answer
  • How do i get my camera to work in the app, i just got a new phone and it won’t pull up the camera
    14·1 answer
  • Two AAA-size lithium batteries are connected in series in a flashlight. Each battery has 3.5 volt and 4- Amp-hour capacity. If t
    8·1 answer
  • A converging - diverging frictionless nozzle is used to accelerate an airstream emanating from a large chamber. The nozzle has a
    15·2 answers
  • Which of the following correctly explains why it would be beneficial for an engineer to become a member of the Leadership in Ene
    15·2 answers
  • How to walk a dog dududududududududesssss
    6·2 answers
  • How many 3-digits numbers which are greater than 300 can be formed from 6
    12·1 answer
  • Evaluate, please show work as I don't understand. thanks
    5·1 answer
  • What could I do to make this bridge hold more weight without making it heavier? Lateral bracing and a design on the top will be
    14·1 answer
  • The ratio between the modulating signal voltage and the carrier voltage is called?.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!