Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visualizing Health And Healthcare Data Creating Clear And Compelling Visualizations To See How Youre Doing

Authors: Katherine Rowell ,Lindsay Betzendahl ,Cambria Brown

1st Edition

1119680883, 978-1119680888

More Books

Students also viewed these Databases questions