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]
3 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]3 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
If you are setting up a race car. What is the cross weight? Does it matter?
lara31 [8.8K]

Answer:

cross-weight is used to tighten it up.

Explanation:

and yes this is important because Cross-weight percentage compares the diagonal weight totals to the car's total weight.

hope  this help

(mark this answer as an brainliest answer)

7 0
3 years ago
There is a dispute between the multiple parties storing financial transaction data on a blockchain over the validity of a transa
spayn [35]

Answer:

dgjkkkkkkkfdcvv

Explanation:

hjklllgfddsssssyjjjkkkk

p.s sorry

5 0
2 years ago
the tire restraining device or barrier shall be removed immediately from service for any of these defects except
lora16 [44]

Restraining devices and barriers shall be visually inspected on the rim wheel components or sudden release of contained air.

Restraining device means an apparatus such as a <em>cage, rack, assemblage of bars and other components</em> that will constrain all rim wheel components.

Restraining devices and barriers shall be visually inspected on the rim wheel components or sudden release of contained air. Any restraining device or barrier exhibiting damage such as the following defects shall be immediately removed from service.

Find out more on Restraining devices at: brainly.com/question/24647450

5 0
2 years ago
AVH
BigorU [14]

Answer: preventive maintenance

Explanation:

3 0
2 years ago
An inductor and resistor are connected in parallel to a 120-V, 60-Hz line. The resistor has a resistance of 50 ohms, and the ind
BARSIC [14]

Answer:

hi

Explanation:

the answer would be I dont know

6 0
3 years ago
Other questions:
  • A rod is 2m long at temperature of 10oC. Find the expansion of the rod, when the temperature is raised to 80oC. If this expansio
    7·1 answer
  • Someone claims that the shear stress at the center of a circular pipe during fully developed laminar flow is zero. Do you agree
    12·1 answer
  • A 16-lb solid square wooden panel is suspended from a pin support at A and is initially at rest. A 4-lb metal sphere is shot at
    8·1 answer
  • 1. A farmer had 752 sheep and took one shot that got them all. How did he do it?
    9·1 answer
  • You are using a Geiger counter to measure the activity of a radioactive substance over the course of several minutes. If the rea
    6·1 answer
  • Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a commission of 5% of the selling price. Write an in
    9·1 answer
  • Air enters a 200 mm diameter adiabatic nozzle at 195 deg C, 500 kPa and 100 m/s. It exits at 85 kPa. If the exit diameter is 158
    11·1 answer
  • A frequenter of a pub had observed that the new barman poured in average 0.47 liters of beer into the glass with a standard devi
    14·1 answer
  • What is 203593^54/38n^7
    6·1 answer
  • A fluid at 300 K flows through a long, thin-walled pipe of 0.2-m diameter. The pipe is enclosed in a concrete casing that is of
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!