subject

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, 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. input validation. do not accept a number less than 2 for the starting size of the population. if the user fails to satisfy this print a line with this message "the starting number of organisms must be at least 2.", display the prompt again and try to read the value. similarly, do not accept a negative number for average daily population increase, using the message "the average daily population increase must be a positive value." and retrying. finally, do not accept a number less than 1 for the number of days they will multiply and use the message "the number of days must be at least 1."

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
You know the right answer?
Write a program that will predict the size of a population of organisms. the program should ask the...
Questions
question
English, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
question
English, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
question
Mathematics, 09.09.2020 06:01
Questions on the website: 13722361