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
9. What is the Tribal Assistance Coordination Group (TAC-G)?
Alchen [17]
C is the best answer
5 0
3 years ago
What is pre-flush and post flush in petroleum engineering?
cluponka [151]

Answer:

Pre-Flush:

It is also known as In-line Equalization. In this stage of flow equalization, all the flow passes through the equalization basin. It helps in reduction of fluctuation in pollutants concentration and flow rate and helps to control short term surges with the use of basin.

Post-Flush:

Another name for this stage is Off-line Equalization. In this stage, only overflow above a predetermined standard is diverted into the basin. It helps in reducing the fluctuations in loading by a considerable amount and helps to reduce the pumping requirement. It is basically used to capture "first flush" from combined collection systems.

5 0
3 years ago
High strength steels are being used to reduce weight on cars. Explain why using a high strength steel would allow you to reduce
gulaghasi [49]

Engaging the frequently tough requirements of vehicle safety, weight reduction for combustible economy, and manufacturability has influenced the steel industry to create a unique variety of 'super steels' for the automobiles of the future.

<h3><u>Explanation</u>:</h3>

• That steel, though, is far more advanced than the materials of just a few years ago.

• At the forefront of these is Advanced High Strength Steel, AHSS, developed by World Auto Steel’s member companies, which is demonstrating to be something of a vision in automobile production.  

• The standard engineering trade-off in steel preference involves considering the need for ultimate strength against flexibility and work-ability – stronger steels tend to be stiffer and less ductile, making them more difficult to develop into cars and more laborious to weld.

• AHSS can retain greatest of the ductility and work-ability of lower grades of steel, while offering much greater strength.

• Where a typical mild steel might have a tensile strength of 300MPa, AHSS can exceed 1500MPa while retaining a highest elongation of 25%, compared to about 40% for mild steel. The intrigue is in the micro-structure, containing a martensite, bainite, austenite phase rather than ferrite, pearlite, or cementite.

4 0
3 years ago
What is reciprocity?
Murrr4er [49]

Answer:

the practice of exchanging things with others for mutual benefit, especially privileges granted by one country or organization to another.

HOPE THIS HELPED!!!!!!!!!!!!! XDDDDDD

7 0
4 years ago
Read 2 more answers
The basic behind equal driving is to
vlabodo [156]

Follow traffic signs , Keep distance between cars , Be patient in traffic.

4 0
4 years ago
Other questions:
  • Water is to be pumped through a 100-mile of the Rub’al Khali desert in a smooth concrete pipe (=0.005ft) at a flow rate of 5 ft
    8·1 answer
  • The collar A, having a mass of 0.75 kg is attached to a spring having a stiffness of k = 200 N/m . When rod BC rotates about the
    15·1 answer
  • Stopping quickly is very important in roller derby. It’s necessary to avoid going out of bounds, to quickly turn and pursue memb
    15·1 answer
  • 2.18 The net potential energy between two adjacent ions, EN, may be represented by the following equation: (1) Calculate the bon
    5·1 answer
  • Which of following unit cell has the smallest atomic packing factor? (a) BCC unit cell (b) FCC unit cell (c) SC unit cell (d) HC
    5·1 answer
  • Precast double-tee units are generally used as structural floors when:________.
    6·1 answer
  • Visual aids are useful for all of the following reasons except
    11·1 answer
  • A correctly designed and installed air curtain can be used to prevent what
    12·1 answer
  • If 360 Joules of work is needed to move a crate a distance of 4 meters, how much force was applied of the crate?​
    15·1 answer
  • A 24-volt DC battery is connected
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!