Population of Organisms

Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average daily population increase (as a percentage*), and the number of days they will multiply. A loop should display the size of the population for each day.

code should include the following functions

• function to get value for the starting number organisms

• function to get a valid value for the average daily

• function to get a valid value for the number of days

• function to calculate and print amount of increase each day.

Your code should write the output to a file. *this does not need to be a function

I will run your code to ensure the result.txt is produced

Input Validation:

Do convert increase to percentage* if user does not.

For example

Output to screen

Output file

The post assignment.pdf appeared first on graduate researcher | Professional essay writing services.

Leave a Reply

Your email address will not be published. Required fields are marked *