Question: 1. Calculate and Print Projected Population Growth Write a program that calculates and prints the projected population size of an organism as it grows over

 1. Calculate and Print Projected Population Growth Write a program that

calculates and prints the projected population size of an organism as it

grows over time. The program should prompt the user for input values

1. Calculate and Print Projected Population Growth Write a program that calculates and prints the projected population size of an organism as it grows over time. The program should prompt the user for input values for Starting number of organisms Average daily increase as a percent Number of days to track the growth Then print out the day and the number of organisms in the population for each day tracked. (EXAMPLE): if the user entered these values Starting number of organisms: 2 Average daily increase: 30% Number of days to multiply: 10 Then the program should display the following table: Day: Population: 1 2 2 2.6 3 3.38 4 5 6 7 4.394 5.7122 7.42586 9.653619 12.5497 16.31462 21.209 8 9 10 you can insert a tab in your print statement with 'It' like this: print ("Day: \t Population:") More info on escape characters here: https://www.w3schools.com/python/gloss_python_escape_characters.asp 2. Calculate and Print the Nth triangular number Triangular numbers are numbers in the sequence {1, 3, 6, 10, 15, 21, 28, 36, ...}. Look closely at the differences between each number. Do you notice a pattern? Your program will ask the user to provide a positive integer and it will output the triangular number in that position in the sequence. If the user does not provide a positive number, write an error message. 2. Calculate and Print the Nth triangular number Triangular numbers are numbers in the sequence {1, 3, 6, 10, 15, 21, 28, 36, ...}. Look closely at the differences between each number. Do you notice a pattern? Your program will ask the user to provide a positive integer and it will output the triangular number in that position in the sequence. If the user does not provide a positive number, write an error message. Do not use the closed-form solution: f(n) = ((n + 1) * n)/2 You must use a loop-based solution. EXAMPLES: If the user enters 4, your program should display "The triangular number in position 4 is 10" If the user enters 1, your program should display "The triangular number in position 1 is 1" If the user enters -5, your program should display "That is not a valid sequence position

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!