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
Knowing that the central portion of the link BD has a uniform cross-sectional area of 800 2, determine the magnitude of the load
IceJOKER [234]

Answer: 50

Explanation:

7 0
3 years ago
Corrective maintenance _________________________.​
andrew-mc [135]

Answer:

b. ​diagnoses and corrects errors in an operational system

Explanation:

Corrective maintenance is one that is performed with the purpose of repairing faults or defects that occur in equipment and machinery.  As such, it is the most basic way of providing maintenance, as it simply involves repairing what has broken down. In this sense, corrective maintenance is a process that basically consists of locating and correcting faults or damages that are preventing the machine from performing its function in a normal way.

3 0
4 years ago
Why is the face of the claw on a claw hammer usually a smooth curve? Why isn't it straight or some other shape?
GarryVolchara [31]

Answer:

The face of the claw on the claw hammer is usually a smooth curve so as to improve the ease with which nails are removed when removing nails because as the nail held between the V shaped split claw is being pulled out from the wood, it slides more and more towards cheek, reducing the distance of the nail from the cheek which is the fulcrum, thereby increasing the mechanical advantage because the location of the hand on the grip remains unchanged

Explanation:

7 0
3 years ago
Which of the following identifies the three main steps in the design process of an engineer?
ikadub [295]

Answer:

define the problem, do background research and specify requirements

8 0
3 years ago
Identify each statement as referring to a series or parallel circuit.
jolli1 [7]

Answer:

1. Parallel circuit

2. Parallel circuit

3. Series circuit

4. Series circuit

5. Parallel circuit

6. Parallel circuit

Explanation:

1. In a parallel circuit, there are multiple paths for current to flow. The path each current takes depends on the resistance of the resistors on that path.

2. In a parallel circuit, current splits up into various paths to get the total current through the circuit, the current flow through each resistor is added.

3. In a series circuit the voltage across each resistor is not the same. to get back the total voltage, the voltages across each resistor needs to be added.

4. Series circuits have voltage drops across each resistor. this makes the voltage across each resistor depend on the resistance of the resistor.

5. In parallel circuits voltage is the same across each resistor because they are all connected directly to the same source.

6. In parallel circuits, the power is the same in each resistor of equal resistance since the voltage across each resistor is the same

7 0
4 years ago
Other questions:
  • Steam flows at steady state through a converging, insulated nozzle, 25 cm long and with an inlet diameter of 5 cm. At the nozzle
    11·1 answer
  • A gear box’s shaft is made of a hollow circular steel tube with allowable yield stress equal to σa????????o???? . The shaft is l
    7·1 answer
  • Who else ships it????????
    6·1 answer
  • TWO SENTENCES!!! What is something that you have used today that was designed by an engineer? What parts were designed by an eng
    11·2 answers
  • People tend to self-disclose to others that are in age, social status, religion, and personality.
    11·2 answers
  • Plzzzzz help ASAP 50 points for the answer
    7·1 answer
  • A. Briefly describe the microstructural difference between spheroidite and tempered martensite. Explain why tempered martensite
    14·1 answer
  • 1. A company has an annual demand for a product of 2000 units, a carrying cost of $20per unit per year, and a setup cost of $100
    13·1 answer
  • Which contemporary jazz artist was one of the first to use a synthesizer in their recording
    8·1 answer
  • HELP HELP HELP
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!