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
An interrupted line of sight means changes in ......and .... are necessary for re-establishing a ......... to the driver’s path
Mrrafil [7]

Answer:

Welcome to Gboard clipboard, any text that you copy will be saved here.

Explanation:

Touch and hold a clip to pin it. Unpinned clips will be deleted after 1 hour.

5 0
2 years ago
Consider air entering a heated duct at P1 = 1 atm and T1 = 288 K. Ignore the effect of friction. Calculate the amount of heat pe
Ne4ueva [31]

Answer:

The solution for the given problem is done below.

Explanation:

M1 = 2.0

\frac{p1}{p*} = 0.3636

\frac{T1}{T*} = 0.5289

\frac{T01}{T0*} = 0.7934

Isentropic Flow Chart:  M1 = 2.0 , \frac{T01}{T1} = 1.8

T1 = \frac{1}{0.7934} (1.8)(288K) = 653.4 K.

In order to choke the flow at the exit (M2=1), the above T0* must be stagnation temperature at the exit.

At the inlet,

T02= \frac{T02}{T1}T1 = (1.8)(288K) = 518.4 K.

Q= Cp(T02-T01) = \frac{1.4(287 J / (Kg.K)}{1.4-1}(653.4-518.4)K = 135.7*10^{3} J/Kg.

5 0
3 years ago
Read 2 more answers
The moisture content in air (humidity) is measured by weight and expressed in pounds or ____________________.
VikaD [51]

Moisture content is measured in terms of pounds of water per pound of air (lb water/lb air) or grains of water per pound of air (gr. of water/lb air).

Hope this helps❤

3 0
2 years ago
______ are an idication that your vehicle may be developing a cooling system problem.
iris [78.8K]

Answer:

The temperature gauge showing that the vehicle has been running warmer or has recently began to have issues from overheating is  an idication that your vehicle may be developing a cooling system problem.

Explanation:

8 0
3 years ago
A 132mm diameter solid circular section​
Ganezh [65]

Answer:

not sure if this helps but

5 0
3 years ago
Other questions:
  • A tank contains liquid nitrogen at -190℃ is suspended in a vacuum shell by three stainless steel rods 0.80 cm in diameter and 3
    8·1 answer
  • Traditional password entry schemes are susceptible to "shoulder surfing" in which an attacker watches an unsuspecting user enter
    13·1 answer
  • 100 kg of refrigerant-134a at 200 kPa iscontained in a piston-cylinder device whose volume is 12.322 m3. The piston is now moved
    14·1 answer
  • 29
    6·1 answer
  • The shear force diagram is always the slope of the bending moment diagram. a)True b)- False
    14·1 answer
  • A pump transfers water from a lake to a reservoir, which is located 29.2 m above the lake, at a rate of 11.5 L/s. Determine the
    12·1 answer
  • Im passed due someone help meeeeeee
    7·2 answers
  • 3Px=y−y2p2<br><br>first order higher dgree​
    11·1 answer
  • Define;<br>i) Voltage<br>ii) Current<br>iii) Electrical Power<br>iv) Electrical Energy​
    10·1 answer
  • Is the pure fission bomb a nuclear bomb?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!