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
alina1380 [7]
4 years ago
6

Write a program that prompts the user for the initial population sizes, these rates, and the number of years. Then print the pop

ulations for the given number of years after your simulation has completed. Hint: This can be accomplished in about 15 lines of code.
Computers and Technology
1 answer:
Genrish500 [490]4 years ago
3 0

Answer:

The solution code is written in Python:

  1. pop_size = int(input("Enter population size: "))
  2. growth_rate = float(input("Enter growth rate: "))
  3. years = int(input("Enter number of year: "))
  4. for n in range(1, years + 1):
  5.    pop_size = pop_size + (pop_size * growth_rate / 100)  
  6.    print("Population size after year " + str(n) + ": " + str(pop_size))

Explanation:

Firstly, prompt user to input initial population size, growth rate and number of years and assign them to their respective variables (Line 1 - 3).

Next, create a for-loop to iterate through the number from 1 till the given number of year (Line 5)

Within the for-loop, apply the formula

initial population + (initial population * growth rate )

to estimate the population size after n year (Line 6) and display the output (Line 7).

You might be interested in
If we have an economy that operates with a minimum of government interference, why are there so many laws on the books about emp
yKpoI14uk [10]
Hey there!


For this answer, Choice B. or the second option is the best answer!

Hope this helps. Let me know if there is anything else.
8 0
3 years ago
Read 2 more answers
Which browser feature will delete your history, cache, and cookies the moment you close the special window
AURORKA [14]

Answer:

Private Browsing

Explanation:

Stuff like DuckDuckGo or Brave

6 0
3 years ago
Companies increasingly want to allow employees to share files directly without having to maintain servers to provide FTP access.
jeyben [28]

Answer:

The answer is "use P2P method".

Explanation:

In Corporation are starting to regard P2P is a method, which enabling workers to transfer files directly, reducing the expenses and construction connected with a central network.

  • It allows corporations to make the use of often latent resources on both the computer for each worker.
  • It will also be forced to control access to data to protect the privacy and sensitive materials, and will also be able to encrypt files by code.

5 0
3 years ago
1.What is aperture priority mode? When might you use this mode on a camera?
miss Akunina [59]

The answers are too long. I have compiled them in Word and attached them below.

Download docx
8 0
3 years ago
Which of the following is a feature of Big Data? Group of answer choices Its datasets are at least a petabyte in size. It is gen
Serggg [28]

Answer:

Its data sets are at least a petabyte in size.

Explanation:

Big data data sets are of huge size to perform the computations using modern techniques.

6 0
4 years ago
Other questions:
  • Why is it important to save a print copy of electronic sources?
    6·1 answer
  • This is important I need help please
    14·1 answer
  • Vertebrates first arrived during the _________________.
    9·1 answer
  • Write a C function check(x, y, n) that returns 1 if both x and y fall between 0 and n-1 inclusive. The function should return 0
    6·1 answer
  • What else can Xbox do to help reduce negative online behavior? (250 minimum)
    6·1 answer
  • Write only in C, not C++.
    14·1 answer
  • Which formatting option(s) can be set for Conditional Formatting rules?
    8·2 answers
  • 5. Describe the concept behind a digital signature and explain how it relates to cybersecurity by providing a hypothetical examp
    6·1 answer
  • Which component of the computer keeps the operating system when the computer is running​
    10·1 answer
  • FCAPS is a network management functional model. FCAPS is an acronym that represents the focal tasks necessary to effectively man
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!