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]
2 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:
fomenos2 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 square loop of wire surrounds a solenoid. The side of the square is 0.1 m, while the radius of the solenoid is 0.025 m. The sq
Semmy [17]

Answer:

I=9.6×e^{-8}  A

Explanation:

The magnetic field inside the solenoid.

B=I*500*muy0/0.3=2.1×e ^-3×I.

so the total flux go through the square loop.

B×π×r^2=I×2.1×e^-3π×0.025^2

=4.11×e^-6×I

we have that

(flux)'= -U

so differentiating flux we get

so the inducted emf in the loop.

U=4.11×e^{-6}×dI/dt=4.11×e^-6×0.7=2.9×e^-6 (V)

so, I=2.9×e^{-6}÷30

I=9.6×e^{-8}  A

6 0
3 years ago
Working with which of these systems requires a technician that has been certified in an EPA-approved course?
makvit [3.9K]

EPA Regulations provides a certified course for the technicians involved in the Air-conditioning system.

Answer: Option (b)

<u>Explanation:</u>

The EPA regulation has implemented an act called the "Clean Air Act" under the "section of 609".

This act provides some basic requirements for EPA Regulation such as follows;

  • Refrigerant: This unit must be approved by EPA Regulations before being implemented into the atmosphere.
  • Servicing: This system provides a certified course for technicians in service and also approve them with proper refrigerant equipment.
  • Reuse Refrigerants: The use of recycled refrigerants must be properly monitored before it comes in to serve.
6 0
3 years ago
Your study space does not need to be quiet as long as you can ignore any noise coming from the space true or false?
Makovka662 [10]

Answer:

False

Explanation:

When you're studying, you need to make sure that you can focus properly. This means that you shouldn't be hungry or too full and that you should be well-rested, in a quiet room with good lighting and no distractions. Noise is never good when you need to memorize something. Some people can partially ignore it as long as it isn't too loud, but it will begin to bother them eventually. That's why it's better to study in a quiet room.

3 0
2 years ago
Read 2 more answers
What is one of the most common ways workers get hurt around machines
-BARSIC- [3]

Answer:

if their body parts stuck in a machine,if machine expl

Explanation:

ode.

4 0
3 years ago
A reservoir delivers water to a horizontal pipeline 39 long The first 15 m has a diameter of 50 mm, after which it suddenly beco
allsm [11]

Answer:

The difference of head in the level of reservoir is 0.23 m.

Explanation:

For pipe 1

d_1=50 mm,f_1=0.0048

For pipe 2

d_2=75 mm,f_2=0.0058

Q=2.8 l/s

Q=2.8\times 10^{-3]

We know that Q=AV

Q=A_1V_1=A_2V_2

A_1=1.95\times 10^{-3}m^2

A_2=4.38\times 10^{-3} m^2

So V_2=0.63 m/s,V_1=1.43 m/s

head loss (h)

h=\dfrac{f_1L_1V_1^2}{2gd_1}+\dfrac{f_2L_2V_2^2}{2gd_2}+0.5\dfrac{V_1^2}{2g}

Now putting the all values

h=\dfrac{0.0048\times 15\times 1.43^2}{2\times 9.81\times 0.05}+\dfrac{0.0058\times 24\times 0.63^2}{2\times 9.81\times 0.075}+0.5\dfrac{1.43^2}{2\times 9.81}

So h=0.23 m

So the difference of head in the level of reservoir is 0.23 m.

8 0
3 years ago
Other questions:
  • In electric heaters, electrical energy is converted to potential energy. a)-True b)-false?
    11·1 answer
  • A waste treatment pond is 50m long and 25m wide, and has an average depth of 2m.The density of the waste is 75.3 lbm/ft3. Calcul
    12·1 answer
  • What is the most likely reason the rover won't travel in a straight line?
    9·1 answer
  • 1. You are asked to write a report about one of the structures that Transportation Engineers
    9·1 answer
  • Select the correct answer. Jude is a mechanical engineer. He works in the automobile industry. He is creating a prototype of an
    13·1 answer
  • Connecting rods undergo a process to alleviate manufacturing stresses from forging, a process known as ______.​
    7·1 answer
  • Dndbgddbdbhfdhdhdhhfhffhfhhddhhdhdhdhdhd​
    11·2 answers
  • Select the correct answer. Felix aspires to be an engineer working for the government. What credentials will Felix require to ap
    5·1 answer
  • A company intends to market a new product and it estimates that there is a 20% chance that it will be first in the market
    7·1 answer
  • Which type of artificial intelligence (ai) can repeatedly perform tasks of limited scope?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!