subject

5.11: population 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: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
How are stop motion special effects in animated films created
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
You know the right answer?
5.11: population write a program that will predict the size of a population of organisms. the progr...
Questions
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Spanish, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Health, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
History, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
English, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Geography, 13.09.2020 22:01
Questions on the website: 13722360