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 2.2-kg model rocket is launched vertically and reaches an altitude of 70 m with a speed of 30 m/s at the end of powered flight
kirill115 [55]

Answer:

r_b= (30.8\hat{i} + 69.96 \hat{j}) m

Explanation:

given,

mass = 2.2 kg

altitude(r₀) = (70 j) m

speed = 30 m/s

m_a = 0.77 kg

m_b =1.43 kg

part A strike ground (r_a)= (80 i) m

t = 6 s

r = r_0 + v_ot-\dfrac{1}{2}gt^2

r = 60\hat{j} + (30\hat{j})\times 6-\dfrac{1}{2}\times 9.8 \times 6^2

r = 63.6 j m

by conservation of energy

mr = m_ar_a+m_br_b

2.2\times 63.6\hat{j} = 0.77\times (-80 \hat{i})+2\times r_b

r_b= (30.8\hat{i} + 69.96 \hat{j}) m

8 0
3 years ago
What type of drawing would civil engineers use if they needed to show an
Katyanochek1 [597]

Answer:

I would say an Oblique drawing.

Explanation:

An oblique drawing uses 45 degree angles.

5 0
3 years ago
View the picture below and then correctly answer the questions using the following words: Temperate Zone, Tropical Zone, Polar Z
Nadusha1986 [10]

Can you provide the picture? Thanks !

8 0
3 years ago
Read 2 more answers
Give me uses of a grinding machine in agriculture.
Tju [1.3M]

Answer:

The grinding machine is used for roughing and finishing flat, cylindrical, and conical surfaces; finishing internal cylinders or bores; forming and sharpening cutting tools; snagging or removing rough projections from castings and stampings; and cleaning, polishing, and buffing surfaces.

4 0
3 years ago
Determine (a) the principal stresses and (b) the maximum in-plane shear stress and average normal stress at the point. Specify t
raketka [301]

Answer:

a) 53 MPa,  14.87 degree

b) 60.5 MPa  

Average shear = -7.5 MPa

Explanation:

Given

A = 45

B = -60

C = 30

a) stress P1 = (A+B)/2 + Sqrt ({(A-B)/2}^2 + C)

Substituting the given values, we get -

P1 = (45-60)/2 + Sqrt ({(45-(-60))/2}^2 + 30)

P1 = 53 MPa

Likewise P2 = (A+B)/2 - Sqrt ({(A-B)/2}^2 + C)

Substituting the given values, we get -

P1 = (45-60)/2 - Sqrt ({(45-(-60))/2}^2 + 30)

P1 = -68 MPa

Tan 2a = C/{(A-B)/2}

Tan 2a = 30/(45+60)/2

a = 14.87 degree

Principal stress

p1 = (45+60)/2 + (45-60)/2 cos 2a + 30 sin2a = 53 MPa

b) Shear stress in plane

Sqrt ({(45-(-60))/2}^2 + 30) = 60.5 MPa

Average = (45-(-60))/2 = -7.5 MPa

5 0
3 years ago
Other questions:
  • Air is compressed adiabatically from p1 1 bar, T1 300 K to p2 15 bar, v2 0.1227 m3 /kg. The air is then cooled at constant volum
    13·1 answer
  • When circuit switching is used, what is the maximum number of circuit-switched users that can be supported? Explain your answer
    6·1 answer
  • A Scalar can only be a positive quantity that has a magnitude but no direction ? a)-True b)-False
    5·1 answer
  • What is the main role of matrix in composites! a)-to transfer stress to the other phases b)- to protect phases from environment
    7·1 answer
  • שאלה 2 - כתיבת קוד (35 נק')
    12·1 answer
  • Historically, the introduction of technology has caused profound changes in the labor market and, temporarily at least, displace
    6·1 answer
  • IN JAVA,
    6·1 answer
  • The convection heat transfer coefficient for a clothed person standing in moving air is expressed as h 5 14.8V0.69 for 0.15 , V
    12·2 answers
  • Implement a program that manages shapes. Implement a class named Shape with a method area() which returns the double value 0.0.
    8·1 answer
  • Explain how you would solve for total resistance in a parallel circuit versus a series circuit. How would you apply and solve fo
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!