Question: Write a script which produces a table which approximates half-life decay. P(t) = P_0(1/2)^t/t_1/2 Your program should take two inputs: (a) the initial population (P_0)

 Write a script which produces a table which approximates half-life decay.

Write a script which produces a table which approximates half-life decay. P(t) = P_0(1/2)^t/t_1/2 Your program should take two inputs: (a) the initial population (P_0) (b) the half-life (t_1/2) in years. Your program should then produce a table (see format below) which gives the decaying population and corresponding time values until the population reaches 1. Your function should allow for repeated operation until a terminating condition (such as negative starting population) is specified. Enter the starting population (billions): 20 Enter the half-life of the material (years): 5

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!