Question: Problem 3 ( 6 points ) Element 1 1 2 is Livermorium, which has a half - life of 5 3 m s . This
Problem points
Element is Livermorium, which has a halflife of This means that every half
of the atoms of the element present decay. For example, if there are atoms of the element
now, in there will be atoms of the element, and in there will be atoms.
Write MATLAB code consisting of a main script and a function that will calculate the amount of
Livermorium present after a certain amount of time has passed and will graph the amount of
Livermorium as a function of time. Follow these criteria in organizing your code:
The main script will
prompt the user for the initial amount of Livermorium in grams
prompt the user for the length of time over which to calculate the decays.
call the decay function
print a statement to the screen with the elapsed time in seconds and the
amount of Livermorium remaining in grams
The decay function will
accept the initial grams of Livermorium and the time elapsed as input
arguments
calculate the number of grams remaining after each halflife
plot the amount of Livermorium vs time elapsed in seconds. Use data
markers and no connecting line.
return the amount of Livermorium remaining in grams after the elapsed
time. The function does not have to consider any fractional half lives at
the end of the requested time.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
