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
You have just finished your OST takeoffs for a single-story home and found 175 LF of interior walls with 2x6 studs 14" OC. The h
zimovet [89]

Answer:

Total BF for the interior wall is 7.50BD

Explanation:

Given Data:

· Size of stud = 2” x 6”

· Height of Wall = 8 ft

· Top plates = 2

· Bottom Plate = 1

BF stands for board feet in lumber/wood terminology. It is the unit of volume.

1 BF (Board feet) = 1 ft x 1 ft x 1 inch

Since there are total three plates at top and bottom, we have to deduct their thickness from wall height to calculate height of stud.

Height of stud = 8’ – 3 x 2” = 7’6” = 7.5 ft

Board feet of one stud = 7.50 6/12 x 2 = 7.50 BD

Total BF for the interior wall is 7.50BD

7 0
3 years ago
What is the answer of this question please tell me <br><br>dadada please please​
charle [14.2K]

lol i neeeeeeeeeeeeeeeeeeeeeeeed pointssssssssssssssss

6 0
3 years ago
It is not a practical proposition to take direct measurements in nanoscale, but we can estimate variations in position and momen
Volgvan

Answer:

Answer is c Heisenberg's uncertainty principle

Explanation:

According to Heisenberg's uncertainty principle there is always an inherent uncertainty in measuring the position and momentum of a particle simultaneously.

Mathematically

\Delta x\times \Delta \overrightarrow{p}\geq \frac{h}{4\pi }

here 'h' is planck's constant

7 0
3 years ago
Which of the following is a possible consequence of poor measurement in construction as stated in the segment?
Kamila [148]

Answer:

Decreased risk of structure failure

6 0
3 years ago
You installed a new 40 gallon water heater with a 54,000 BTUh burner. The underground water temperature coming into the house is
kipiarov [429]
14256000. Kanjiuijhgg
5 0
3 years ago
Read 2 more answers
Other questions:
  • Make a proposal to add a small pizza shop to a historical part of town. How could it be designed to “fit” into the area?
    7·2 answers
  • Calculate the availability of a system where the mean time between failures is 900 hours and the mean time to repair is 100 hour
    15·1 answer
  • What are the equipment requirements for windshields and side windows?
    13·1 answer
  • I JUST PLAYED A GAME IN 2ND PERSON AND IM CONFEUSED
    15·2 answers
  • A long rod of 60-mm diameter and thermophysical properties rho=8000 kg/m^3, c=500J/kgK, and k=50 W/mK is initally at a uniform t
    8·1 answer
  • What does abbreviation vom stand for
    14·2 answers
  • What parts do all circuits have in common?
    9·2 answers
  • A cross beam in a highway bridge experiences a stress of 14 ksi due to the dead weight of the bridge structure. When a fully loa
    14·1 answer
  • What are the most used electronic tools for electronic works?​
    13·1 answer
  • a storage tank contains liquid with a density of 0.0361 lbs per cubic inch. the height of liquid in the tank is 168 feet. what i
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!