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
Successful students read on a ____ basis.
icang [17]

I think it is daily????

5 0
3 years ago
Read 2 more answers
Is it possible that two types of dislocation coexist. a)-True b)- False
Svetlanka [38]

Answer:

yes it is possible

Explanation:

dislocation are if two type edge and screw dislocations

edge dislocation is a defect where an extra half plane is inside the lattice.

and screw dislocation is one in which can be assumed as the first half of the crystal slips over another.

These dislocation can coexist together where the line direction and burger vectors are  neither parallel nor perpendicular then at that condition both dislocation screw and edge will coexist

3 0
3 years ago
Help please thank you​
OleMash [197]

2.4 is the correct answer .

125 ÷ 52

4 0
4 years ago
Select four types of engineers who might be involved in the development of a product such as an iPhone.
Musya8 [376]

computer engineers

electrical engineers

mechanical engineers

manufacturing engineers

3 0
3 years ago
Read 2 more answers
1.0•10^-10 standard form
Drupady [299]

Answer:

1.0 * 10^{-10} = 0.0000000001

Explanation:

Given

1.0 * 10^{-10}

Required

Convert to standard form

1.0 * 10^{-10}

From laws of indices

a^{-x} = \frac{1}{a^x}

So, 1.0 * 10^{-10} is equivalent to

1.0 * 10^{-10} = 1.0 * \frac{1}{10^{10}}

1.0 * 10^{-10} = 1.0 * \frac{1}{10}* \frac{1}{10}* \frac{1}{10}* \frac{1}{10}* \frac{1}{10}* \frac{1}{10}* \frac{1}{10}* \frac{1}{10}* \frac{1}{10}* \frac{1}{10}

1.0 * 10^{-10} = 1.0 * \frac{1}{10000000000}

1.0 * 10^{-10} = 1.0 * 0.0000000001

1.0 * 10^{-10} = 0.0000000001

Hence, the standard form of 1.0 * 10^{-10} is 0.0000000001

3 0
3 years ago
Other questions:
  • Which of the following are benefits of the Python programming
    15·2 answers
  • Assume you have a beam that is 15 feet long and carries a concentrated load of 900 pounds at a distance of 4 feet from R . React
    15·1 answer
  • An urn contains r red, w white, and b black balls. Which has higher entropy, drawing k ~2 balls from the urn with replacement or
    7·1 answer
  • Write a program to sort the student’s names (ascending order), calculate students’ average test scores and letter grades (Use th
    13·1 answer
  • What is the typical bonding in a conductor and a semiconductor??
    14·1 answer
  • Calculate the line parameters ????′, ????′, ????′, and ????′ for a coaxial line with an inner conductor diameter of 0.5 cm and a
    13·1 answer
  • A spark ignition engine burns a fuel of calorific value 45MJkg. It compresses the air-ful mixture in accordance with PV^1.3=cons
    14·1 answer
  • A 100-ampere resistor bank is connected to a controller with conductor insulation rated 75°C. The resistors are not used in conj
    8·1 answer
  • Can someone pls give me the answer to this?
    9·1 answer
  • error: request for member 'setcursor' in 'oled', which is of non-class type 'adafruit ssd1306(int, int)' oled.setcursor(x, accel
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!