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
Olegator [25]
3 years ago
11

5.11: Population Write a program that will predict the size of a population of organisms. The program should ask the user for th

e starting number of organisms, their average daily population increase (as a percentage, expressed as a fraction in decimal form: for example 0.052 would mean a 5.2% increase each day), and the number of days they will multiply. A loop should display the size of the population for each day.
Engineering
1 answer:
fomenos3 years ago
4 0

Answer:

// using c++ language

#include "stdafx.h";

#include <iostream>

#include<cmath>

using namespace std;

//start

int main()

{

  //Declaration of variables in the program

  double start_organisms;

  double daily_increase;

  int days;

  double updated_organisms;

  //The user enters the number of organisms as desired

  cout << "Enter the starting number of organisms: ";

  cin >> start_organisms;

  //Validating input data

  while (start_organisms < 2)

  {

      cout << "The starting number of organisms must be at least 2.\n";

      cout << "Enter the starting number of organisms: ";

      cin >> start_organisms;

  }

  //The user enters daily input, here's where we apply the 5.2% given in question

  cout << "Enter the daily population increase: ";

  cin>> daily_increase;

  //Validating the increase

  while (daily_increase < 0)

  {

      cout << "The average daily population increase must be a positive value.\n ";

      cout << "Enter the daily population increase: ";

      cin >> daily_increase;

  }

  //The user enters number of days

  cout << "Enter the number of days: ";

  cin >> days;

  //Validating the number of days

  while (days<1)

  {

      cout << "The number of days must be at least 1.\n";

      cout << "Enter the number of days: ";

      cin >> days;

  }

 

  //Final calculation and display of results based on formulas

  for (int i = 0; i < days; i++)

  {

      updated_organisms = start_organisms + (daily_increase*start_organisms);

      cout << "On day " << i + 1 << " the population size was " << round(updated_organisms)<<"."<<"\n";

     

      start_organisms = updated_organisms;

  }

  system("pause");

   return 0;

//end

}

You might be interested in
A feeder is supplying a 125-ampere, 240-volt panelboard in a multifamily dwelling. The conductors will be THHN aluminum conducto
scoundrel [369]

Answer:

The minimum size aluminium equipment grounding conductor required is 4 AWG.

Explanation:

minimum aluminum size = 125/0.8  

                                         = 156.25

Therefore, The minimum size aluminium equipment grounding conductor required is 4 AWG.

6 0
3 years ago
(2pts) In _______________, the pulse amplitude is made proportional to the amplitude of the modulating signal. pulse-amplitude m
Reptile [31]

Answer:

  (a)  pulse-amplitude modulation (PAM)

Explanation:

It should be no surprise that pulse amplitude is modulated in <em>pulse-amplitude modulation (PAM)</em>.

7 0
3 years ago
1. (16 points) True or False, one point each, Write down F (false) or T (true). ___ (01) In a mechanical design, it is recommend
nikitadnepr [17]

Answer:

True

Explanation:

I looked it up

3 0
4 years ago
1) Which step in the Design Process utilizes technical drawings to provide information necessary to
Natalija [7]

Answer: produce a product

Explanation:

7 0
2 years ago
The constant A in Equation 17.2 is 12π4 R/5(θD) 3 where R is the gas constant and θD is the Debye temperature (K). Estimate θD f
kirill115 [55]

Answer:

The Debye temperature for aluminum is 375.2361 K

Explanation:

Molecular weight of aluminum=26.98 g/mol

T=15 K

The mathematical equation for the specific heat and the absolute temperature is:

C_{v} =AT^{3}

Substituting in the expression of the question:

C_{v} =(\frac{12\pi ^{4}R }{5\theta _{D}^{3}  } )T^{3}

\theta _{D} =(\frac{12\pi ^{4}RT^{3}  }{5C_{v}   } ) ^{1/3}

Here

C_{v} =4.6\frac{J}{kg-K} *\frac{1kg}{1000g} *\frac{26.98g}{1mol} =0.1241J/mol-K

Replacing:

\theta _{D}  =(\frac{12\pi ^{4}*8.31*15^{3}  }{5*0.1241} )^{1/3} =375.2361K

3 0
3 years ago
Other questions:
  • A liquid level control system linearly converts a displacement of 2-3 meters into a 4-20 mA control signal. A relay closes at 12
    14·1 answer
  • A 25-W compact fluorescent lightbulb (CFL) produces the light equivalent of a 100-W incandescent bulb. The population of North A
    14·1 answer
  • Assume that one component with 256 I/Os is offered in three forms: QFP, full array PBGA, and fl ip chip with gold bumps. The pit
    7·1 answer
  • A piston-cylinder assembly has initially a volume of 0.3 m3 of air at 25 °C. Mass of the air is 1 kg. Weights are put on the pis
    15·1 answer
  • A tank with some water in it begins to drain. The function v ( t ) = 46 − 3.5 t determines the volume of the water in the tank (
    12·1 answer
  • Marco wants to investigate the chemical properties of sodium bicarbonate, or baking soda. He plans to carry out the tests below.
    8·2 answers
  • Air at 40C flows over a 2 m long flat plate with a free stream velocity of 7 m/s. Assume the width of the plate (into the paper)
    9·1 answer
  • TIMED TEST!!!!!!!!!!!!What process that occurred in the Midwestern United States in the 1930s is now occurring in the Sahel regi
    5·1 answer
  • An artist is creating a gigantic mobile using old cars. On one end of the mobile, a 2100 lb Plymoth is suspended 30 feet from th
    8·2 answers
  • Hi all any one help me?? ​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!