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
Select the correct answer.
juin [17]
Orthographic projection, common method of representing three-dimensional objects, usually by three two-dimensional drawings in each of which the object is viewed along parallel lines that are perpendicular to the plane of the drawling.
4 0
3 years ago
Which branch of engineering studies the physical behavior of metallic elements?
olga55 [171]

Material engineering studies the physical behavior of metallic elements.

Answer: Option C

<u>Explanation: </u>

Material Engineering is the creation and learning about the materials at an atomic level. An engineers from this branch focus on material and model its characteristics using the computer.

Also, they combine the knowledge of solid-states, metallurgy, chemistry and ceramics to the application level. It also has a great role in building the future with the advancing study in nanotechnology, biotechnology, etc. Simply, these are meant to have vivid applications in future life.

6 0
3 years ago
Read 2 more answers
A series of concrete pillars have been built on the border between Kuwait and Iraq. They are there to __________ the border.
Gala2k [10]

A series of concrete pillars have been built on the border between Kuwait and Iraq. They are there to demarcate the border.

<h3>What is a border?</h3>

A border is a geographical boundary that separate<em> countries, states, provinces, counties, cities, and towns.</em>

A series of concrete pillars have been built on the border between Kuwait and Iraq. They are there to demarcate the border.

Find out more on border at: brainly.com/question/811755

5 0
2 years ago
Which explanation best summarizes what went wrong during Paul’s cost analysis?
Valentin [98]

Answer:

wut is it

Explanation:

4 0
2 years ago
Can a 1½ " conduit, with a total area of 2.04 square inches, be filled with wires that total 0.93 square inches if the maximum f
Papessa [141]

Answer:

it is not possible to place the wires in the condui

Explanation:

given data

total area = 2.04 square inches

wires total area = 0.93 square inches

maximum fill conduit =  40%

to find out

Can it is possible place wire in conduit conduit

solution

we know maximum fill is 40%

so here first we get total area of conduit that will be

total area of conduit = 40% × 2.04

total area of conduit = 0.816 square inches

but this area is less than required area of wire that is 0.93 square inches

so we can say it is not possible to place the wires in the conduit

4 0
3 years ago
Other questions:
  • What is the energy change when the temperature of 15.0 grams of solid silver is decreased from 37.3 °C to 20.5 °C ?
    13·1 answer
  • Find the thickness of the material that will allow heat transfer of 6706.8 *10^6 kcal during the 5 months through the rectangle
    8·1 answer
  • 1000 lb boulder B is resting on a 500 lb platform A when truck C accidentally accelerates to the right (truck in reverse). Which
    15·1 answer
  • WHAT IS THE EFFECT OF ICE ACCRETION ON THE LONGITUDINAL STABILITY OF AN AIRCRAFT?
    8·1 answer
  • Structural engineers use wireless sensor networks to monitor the condition of dams and bridges.
    9·1 answer
  • A positive slope on a position-time graph suggests
    15·1 answer
  • A continuous function y = ƒ(x) is known to be negative at x = 0 and positive at x = 1. Why does the equation ƒ(x) = 0 have at le
    14·1 answer
  • Christopher has designed a fluid power system that repeatedly gets clogs. Which of the following objects should he choose to add
    13·1 answer
  • What should you use to keep battery terminals from corroding
    12·1 answer
  • Identify three questions a patient might ask of the nuclear medicine technologist performing a nuclear medicine exam.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!