An example of how the output should be is the second photo
Part 3: Population Change with Bears (20 pts) You are going to write a program to compute a type of population balance peoblem siemilar to the bansies and Soxes you computed in Lab 3. This problem will have bears, berry fields, and tourits We will just use the word berries to mean the area of the berry fields. We will count the number of bears and tourists, as well. Bears need a lot of bbrries to survive and get ready or winter, So the area of berry Bells is a very important part for their population. Berry Scids D general spreed over time, but if they are trampled too beavily by bears, then they may stop growing and may reduce in size. Tourists are the worst enemy of bears, often habituating then to humans and cansing aggressive behavior. Sadly this can lead to bears being killed to avoid risk to haman life llere how the population of each group linked to one another from ane year to the next. Suppose the variable bears stores the amber of bears in a given yewr and berries stores the are of the berry fields The wumber of tourists in a given year is determined as follows. If there are less than 4 or ore than 15 bears, there are no tourists. It is either not interesting enough or too dangerous or tea In other cases, there are 10,000 tourists for each bear up to and including 10 and then 20,000 tourists for each additional bear. It is a great idoa to write a fanction for computing tourists and test it separately The tmber of bears and berries in the next year is determined by the folowing formalas given the population of bears, berries, and tourists in the given year bears_aext berrses/(50+bears+1))beara-0.60-nath.log(i triata,10).0.1) berries next (berries 1.5)- (bears 1) (berries/14)- (math.log(1 tourists, 10)0.05) Remember none of these values can end up being negative. Negative values should be elipped to zero. Also, bears and tourists are integets. The log function is in the nath module. You mst write a function that takes as input the nber of bears, berries, and tourists in a given year and returus the next year's bears popalation and berry fiekl area as a tupke. > find.mext (o 100040000) (3, 1071.1984678861438) Then write the main program that reads two values, the current population of beans, and the ares of berry fields. Your program then finds and prints the popalation of all three groups (bears, berries, d tourists) for the first year ad amother 9 years (10 years total) You ust use a loop to do this. The output is formatted such that all valses are printed in columans and are aligned to the left within each colmn. The width of each column is exactly 10 characters (padded with spaces, f wecessary). All floating point values need to be printed with exactly one decimal place. Once completed, your program sboukd output: the smallest and largest values of the population of bears, berris, and tomrists reached in your computation. These values shotuld be output using the same formatting ruks as for the population values for each of the years An example of the program rn (how it will look when you rua it using Wing IDE 101)provided in tile bu3 part3 output 01.trt (can be found inside the heo3 files.zip file). Note that the uumber of bears may go dowa to zero and then come back up. Why? Bears from eighboeing s can move in. The min and max values for each of bears, berris, and tourists mny come fron different years. We will test your code with the valas from the example file as well as a range of other values Test Number of bears>5 Size of berry area200 200 Year 1 2 Tourists 50000 Berry 200.0 214.1 259.9 334.2 429.7 521.7 633.5 723.8 827.0 944.9 Bears 4 4 4 4 40000 40000 40000 50000 u 9 hi 10 c Min: h Max: 200.0 944.9 50000 Wha Part 3: Population Change with Bears (20 pts) You are going to write a program to compute a type of population balance peoblem siemilar to the bansies and Soxes you computed in Lab 3. This problem will have bears, berry fields, and tourits We will just use the word berries to mean the area of the berry fields. We will count the number of bears and tourists, as well. Bears need a lot of bbrries to survive and get ready or winter, So the area of berry Bells is a very important part for their population. Berry Scids D general spreed over time, but if they are trampled too beavily by bears, then they may stop growing and may reduce in size. Tourists are the worst enemy of bears, often habituating then to humans and cansing aggressive behavior. Sadly this can lead to bears being killed to avoid risk to haman life llere how the population of each group linked to one another from ane year to the next. Suppose the variable bears stores the amber of bears in a given yewr and berries stores the are of the berry fields The wumber of tourists in a given year is determined as follows. If there are less than 4 or ore than 15 bears, there are no tourists. It is either not interesting enough or too dangerous or tea In other cases, there are 10,000 tourists for each bear up to and including 10 and then 20,000 tourists for each additional bear. It is a great idoa to write a fanction for computing tourists and test it separately The tmber of bears and berries in the next year is determined by the folowing formalas given the population of bears, berries, and tourists in the given year bears_aext berrses/(50+bears+1))beara-0.60-nath.log(i triata,10).0.1) berries next (berries 1.5)- (bears 1) (berries/14)- (math.log(1 tourists, 10)0.05) Remember none of these values can end up being negative. Negative values should be elipped to zero. Also, bears and tourists are integets. The log function is in the nath module. You mst write a function that takes as input the nber of bears, berries, and tourists in a given year and returus the next year's bears popalation and berry fiekl area as a tupke. > find.mext (o 100040000) (3, 1071.1984678861438) Then write the main program that reads two values, the current population of beans, and the ares of berry fields. Your program then finds and prints the popalation of all three groups (bears, berries, d tourists) for the first year ad amother 9 years (10 years total) You ust use a loop to do this. The output is formatted such that all valses are printed in columans and are aligned to the left within each colmn. The width of each column is exactly 10 characters (padded with spaces, f wecessary). All floating point values need to be printed with exactly one decimal place. Once completed, your program sboukd output: the smallest and largest values of the population of bears, berris, and tomrists reached in your computation. These values shotuld be output using the same formatting ruks as for the population values for each of the years An example of the program rn (how it will look when you rua it using Wing IDE 101)provided in tile bu3 part3 output 01.trt (can be found inside the heo3 files.zip file). Note that the uumber of bears may go dowa to zero and then come back up. Why? Bears from eighboeing s can move in. The min and max values for each of bears, berris, and tourists mny come fron different years. We will test your code with the valas from the example file as well as a range of other values Test Number of bears>5 Size of berry area200 200 Year 1 2 Tourists 50000 Berry 200.0 214.1 259.9 334.2 429.7 521.7 633.5 723.8 827.0 944.9 Bears 4 4 4 4 40000 40000 40000 50000 u 9 hi 10 c Min: h Max: 200.0 944.9 50000 Wha