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
A 0.9% solution of NaCl is considered isotonic to mammalian cells. what molar concentration is this?
natka813 [3]

Answer:

58.44 g/mol The Molarity of this concentration is 0.154 molar

Explanation:

the molar mass of NaCl is 58.44 g/mol,

0.9 % is the same thing as 0.9g of NaCl , so this means that 100 ml's of physiological saline contains 0.9 g of NaCl.  One liter of physiological saline must contain 9 g of NaCl.  We can determine the molarity of a physiological saline solution by dividing 9 g by 58 g... since we have 9 g of NaCl in a liter of physiological saline, but we have 58 grams of NaCl in a mole of NaCl.  When we divide 9 g by 58 g, we find that physiological saline contains 0.154 moles of NaCl per liter.  That means that physiological saline (0.9% NaCl) has a molarity of 0.154 molar.  We can either express this as 0.154 M or 154 millimolar (154 mM).

3 0
3 years ago
Which one of the following faults cause the coffee in a brewer to keep boiling after the brewing cycle is finished?
MrRa [10]

Answer:

  C.  Welded contacts on the thermostat

Explanation:

Any fault that keeps the heating element heating when it should not is a fault that will cause the symptom described. The details <em>depend on the design of the brewer</em> (not given).

"A short at the terminals" depends on what terminals are being referenced. The device on-off switch terminals are normally connected together when the brewer is turned on, so a short there may not be observable.

"Welded contacts on the thermostat" will have the observed effect if the thermostat is the primary means of ending the brewing cycle. If the thermostat of interest is an overheat protective device not normally involved in ending the brewing cycle, then that fault may not cause the observed symptom.

__

If the heating element is open-circuit, no heating will occur. A gasket leak may cause a puddle, but may have nothing to do with the end of the brewing cycle. (Loss of water can be expected to end boiling, rather than prolong it.)

8 0
3 years ago
Write a Python program that does the following. Create a string that is a long series of words separated by spaces. The string i
dybincka [34]

Answer:

The code is attached.

Explanation:

I created a string s including 6 colors with spaces in between. Then I converted the string into a list x by using split() method. I used three different methods for removing elements from the list. These methods are remove(), pop() and del.

\\ Then I used methods append(), insert() and extend() for adding elements to the list.

\\ Finally I converted list into a string using join() and adding space in between the elements of the list.

4 0
3 years ago
Recommend the types of engineers needed to collaborate on a city project to build a skateboard park near protected wetlands.
4vir4ik [10]

Answer:

A civil engineer.

Explanation:

Civil engineering is the science that deals with the design, creation and maintenance of constructions for civil use on the earth's surface. Thus, this specialty seeks to adapt soils to the needs of life in society, creating buildings, bridges, and all other constructions adapted to civil life, while taking care of the correct use of soils and the correct distribution of spaces and resources. to be used for such constructions.

4 0
2 years ago
A program is seeded with 30 faults. During testing, 21 faults are detected, 15 of which are seeded faults and 6 of which are ind
Vesna [10]

Answer:

Estimated number of indigenous faults remaining undetected is 6

Explanation:

The maximum likelihood estimate of indigenous faults is given by,

N_F=n_F\times \frac{N_S}{n_S} here,

n_F = the number of unseeded faults = 6

N_S = number of seeded faults = 30

n_s = number of seeded faults found = 15

So NF will be calculated as,

N_F=6\times \frac{30}{15}=12

And the estimate of faults remaining is  N_F-n_F = 12 - 6 = 6

8 0
2 years ago
Other questions:
  • For a steel alloy it has been determined that a carburizing heat treatment of 7 hour duration will raise the carbon concentratio
    12·1 answer
  • name the process by which mild steel can be converted into high carbon steel and explain it briefly ?​
    12·1 answer
  • A low-resistance path in a circuit, commonly called a _____ can cause a circuit breaker to trip
    7·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
  • 1. A hydro facility operates with an elevation difference of 50 m and a flow rate of 500 m3/s. If the rotational speed is 90 RPM
    12·1 answer
  • 1. Which of these materials is the strongest?
    12·1 answer
  • Select the correct answer
    15·1 answer
  • As you have learned, not all motor oils are the same. What are two things that make them different?.
    11·1 answer
  • How many hours should I charge a 4.8 volt 600mah battery(it is urgent)
    8·1 answer
  • How many and what type of<br> receptacles are connected to<br> this circuit?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!