Question: Assignment_2.pdf - Adobe Reader File Edit View Window Help I 1 6 112% Tools Sign Comment Sign In Part 1: Programming Radioactive Decay App 1.1





Assignment_2.pdf - Adobe Reader File Edit View Window Help I 1 6 112% Tools Sign Comment Sign In Part 1: Programming Radioactive Decay App 1.1 Problem Statement X Get Adobe PDF Pack Monthly Unlimited PDF conversions each month Export PDF files to Word, Excel, RTF Subscribe Now A radioactive substance decays over time. Some substances decay very quickly, others more slowly. The rate at which a substance decays is measured by its half-life, which indicates the amount of time it takes for half of the original sample to decay. The half life of a substance can be calculated using the given formula; Select File N(t) = N. (1) + Send Files N(t) = quantity of the substance remaining No = initial quantity of the substance t = time elapsed t1/2 = half life of the substance The figure given below shows how an object decays over time if we initially start with 10 grams of the object and the object has an half-life of 10 seconds. grams) 2 items 1 item selected 645 KB W Pi AO ) 8:01 PM 2/6/2021 Assignment_2.pdf - Adobe Reader File Edit View Window Help 1 / 6 112% 11 Tools Sign Comment Sign In X 10 9 Get Adobe PDF Pack Monthly Unlimited PDF conversions each month Export PDF files to Word, Excel, RTF Amount remaining (in grams) Subscribe Now 0 10 20 30 40 50 60 Time in seconds) Select File Send Files 1.2 Problem to be solved The Science Lab coordinator for The University of South Pacific has recruited you to create a program for managing and stock of radioactive substances in the USP labs. As part of this 2 items 1 item selected 645 KB 8:01 PM W 1 Pi A 4>) 2/6/2021 Assignment_2.pdf - Adobe Reader File Edit View Window Help I 2 /6 112% Tools Sign Comment Sign In X 1.2 Problem to be solved Get Adobe PDF Pack Monthly Unlimited PDF conversions each month Export PDF files to Word, Excel, RTF Subscribe Now The Science Lab coordinator for The University of South Pacific has recruited you to create a program for managing and stock of radioactive substances in the USP labs. As part of this program, you will be required to monitor the availability of radioactive material and create an order for all the elements that are in short supply. The coordinator will provide you with a text file that will state the name of the radioactive substance, the half-life in days as well as the amount of substance currently present in the lab given in grams. The picture below shows a portion of the file. Select File Send Files a data.txt - Notepad File Edit Format View Help actinium-225 10 314 actiniun-226 1.2238 110 americium-240 2.117 395 berkelium-245 4.94 182 berkelium-246 1.8 260 bismuth-206 6.243 464 bismuth-210 5.012 83 calcium-47 4.536 203 californium-246 1.4875 261 dubniun-260 1.283 109 einsteiniun-251 1.375 468 einsteinium-255 1.6375 136 einsteinium-257 7.7 204 erbium-160 1.191 157 fermium-252 1.050 275 fernium-253 3 199 gold-196 6.183 347 gold-198 2.695 187 mold-199 3164 717 Your program is supposed to: 1 item selected 645 KB 2 items W 1 Pi Aula 4) 8:02 PM 2/6/2021 Assignment_2.pdf - Adobe Reader File Edit View Window Help 2 6 112% Tools Sign Comment TRATA-144 Sign In X Get Adobe PDF Pack Monthly Unlimited PDF conversions each month Export PDF files to Word, Excel, RTF Your program is supposed to: 1. Read all of this information 2. Determine the level of stock after 30 days based on radioactive decay rate 3. Create an order for all the elements that are low in stock or will become low in stock in the next 30 days due to radioactive decay. The lab needs a constant supply of these elements thus the minimum stock level of any substance should not be below 100 grams. If the substance availability is less than 100 grams, then this needs to be added to your order. 4. Print the order to a file called "order.txt" Subscribe Now Select File Send Files For example Actinium-225 has a half-life of 10 days and current availability of 314 grams. Therefore availability after 30 days for this would be; t Nt) = N. 30 N 30) = 314 N(30) = 39.25 This indicates that Actinium-225 needs to be ordered as after 30 days, its availability will be less than 100 grams. 2 items 1 item selected 645 KB W Pi 8:02 PM 2/6/2021 Assignment_2.pdf - Adobe Reader File Edit View Window Help 3 6 112% 11 Tools Sign Comment Sign In X e Get Adobe PDF Pack Monthly Unlimited PDF conversions each month Export PDF files to Word, Excel, RTF Subscribe Now Select File Task 1: Write an algorithm to solve the problem mentioned above. Your algorithm must have a loop as well as a decision structure. This should be written as pseudocode and added as comments in your python file. Send Files Task 2: Translate your algorithm into a Python program. The python implementation must have be able to read the data file and create the order file. 1.2.2 Use of Functions in Assignment: It is necessary that you implement this assignment using functions. To obtain the maximum score you must demonstrate some ability to create and use functions of your own. 1.3 Important Note: In your program you must write comments where necessary. Don't write comments for obvious code, but segments of code which seem complex. Also include your name, student id# and tutorial group as comments at the top of your program code. 2 items 1 item selected 645 RB W Pi 8:02 PM 2/6/2021
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
