Question: In C code: Problem 2: In a certain building at a research lab, some yttrium-90 has leaked into the computer analysts' coffee room. The half-life

In C code:
 In C code: Problem 2: In a certain building at a

Problem 2: In a certain building at a research lab, some yttrium-90 has leaked into the computer analysts' coffee room. The half-life of the substance is ab 2 days i.e. that is, the radiation level is only half of what it was 2 days ago. The safe level of the radiation is at most 0.9 millirem a day Your program should ask the user to enter 1) the initial amount of radiation and 2) the total number of days that the user wants to display the radiation level. It then displays the table showing the radiation level every 2 days for the total number of days that the user just entered with the message Unsafe or Safe right next to the radiation level. See sample execution #1 and #2 below Sample execution #1 Enter an initial amount of radiation (millirems): 150 Enter total days to display: 20 Day Radiation Status) 0 50.0000(Un safe) 2 75.0000(Unsafe) 437.5000(Unsafe) 6 18.7500(Unsafe) 8 9.3750 (Unsafe) 10 4.6875(Unsafe) 12 2.3438(Unsafe) 14 1.1719(Unsafe) 16 0.5859(Safe) 18 0.2930(Safe) 20 0.1465 (Safe) Sample execution #2 Enter an initial amount of radiation (millirems):28.5 Enter total days to display: 10 Day Radiation(Status) 0 28.5000 (Unsafe) 2 14.2500(Unsafe) 4 7.1250(Unsafe) 6 3.5625(Unsafe) 8 1.7813 (Unsafe) 10 0.8906(Safe)

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!