Question

In: Computer Science

In a certain building at a top secret research lab , some yttrium-90 has leaked into...

In a certain building at a top secret research lab , some yttrium-90 has leaked into the computer analysts' coffee room. The leak would currently expose personnel to 150 millirems of radiation a day. The half-life of the substance is about three days; that is, the radiation level is only half of what it was three days ago. The analysts want to know how long it will be before the radiation is down to a safe level of 0.466 millirem a day. They would like a chart that displays the radiation level for every three days with the message Unsafe or Safe after every line. The chart should stop just before the radiation level is one-tenth of the safe level, because the more cautious analysts will require a safety factor of 10. The program should also print the first day that the room can be entered.

Solutions

Expert Solution

#include <iostream>
using namespace std;
const float safeLevel =0.466;
void determine(){
cout<<"Radiation Chart"<<endl;
float level=150;
float cop=0;
cop=level;
int i=0;
for(int i=0;i<10;i++){
if(cop==5|| cop<15){
cout<<"DAY "<<i+1<< "Radiation Level: "<<cop<<" Safe"<<endl;
cop=cop/2;
}
else{
cout<<"DAY "<<i+1<< "Radiation Level: "<<cop<<" Unsafe"<<endl;
cop=cop/2;
}

}

}
int main()
{
determine();
return 0;
}

IF YOU HAVE ANY QUERY PLEASE COMMENT DOWN BELOW

PLEASE GIVE A THUMBS UP


Related Solutions

6) c programming Case study: In a certain building at a top secret research lab, some...
6) c programming Case study: In a certain building at a top secret research lab, some yttrium-90 has leaked into the computer analysts’ coffee room. The leak would currently expose personnel to 150 millirems of radiation a day. The half-life of the substance is about three days, that is, the radiation level is only half of what is was three days ago. The analysts want to know how long it will be before the radiation is sown to a safe...
Show all work A ball is projected upward from the top of a 90 foot building...
Show all work A ball is projected upward from the top of a 90 foot building at a velocity of 64 feet per second. The ball's height above the ground below the building is described by the function h(t)=-16t^2 + 64t + 90 , with t being the time in seconds after the ball is projected upward. a.) Determine the amount of the vertical intercept, and interpret what this means in the context of the problem (in terms of seconds...
some sodium cyanide has been placed in a glass of orange juice to poison a secret...
some sodium cyanide has been placed in a glass of orange juice to poison a secret agent the reaction is CN-(aq) + H6H7O7(aq) -> HCN(g) + C6H7O7-(aq) i) is this reaction an acid-base reaction? ii) would this reaction generate enough HCN to poison the agent? include the calculation of the equilibrium constant of the reaction. CN- Kb= 2.5e-5 HC6H7O Ka= 8.4e-4
Victoria’s Secret has decided to make a concerted effort toraise money for Breast Cancer research....
Victoria’s Secret has decided to make a concerted effort to raise money for Breast Cancer research. As part of this effort, they have decided to put together an event that connects their brand with the consumer and with the cause in a “unique and compelling” way. Given the success of the annual fashion show that is televised on CBS, Victoria’s Secret has decided to take the show on the road. Starting this year, Victoria’s Secret is putting together a music...
Research the Internet to find testimonials or recommendations for QuickBooks. What are some top reasons chosen...
Research the Internet to find testimonials or recommendations for QuickBooks. What are some top reasons chosen for picking QuickBooks over other software systems? Any disadvantages noted or poor ratings posted anywhere – if so why? Explain in depth
Is there a relationship between the number of stories a building has and its height? Some...
Is there a relationship between the number of stories a building has and its height? Some statisticians compiled data on a set of n = 52 buildings reported in the 1994 World Almanac. You will use the data set to decide whether height can be predicted from the number of stories. (a) Load the data from buildings.txt (Note that this is a text file, so use the appropriate instruction. If you are having trouble uploading the data, open it to...
A research lab completed a series of studies.The known population (which was normally distributed) has a...
A research lab completed a series of studies.The known population (which was normally distributed) has a mean of 85 and a standard deviation of 6. What is the estimated effect size if a sample given an experimental procedure has a mean of 80 83 91 101 84 78
A client brings a mixture to your lab for analyses. The client has done some preliminary...
A client brings a mixture to your lab for analyses. The client has done some preliminary analyses and has discovered that it is only composed of C, O, N, and H. The mixture is easily dissolved in several common organic solvents and the resultant solution is clear and colourless. The client tried to heat the sample, but the sample thermally decomposed at 280 °C to a black mass. The client wants you to determine how many components are in the...
A research lab has developed a new instructional technique for statistics. They chose five class topics...
A research lab has developed a new instructional technique for statistics. They chose five class topics and completed five separate studies. For each study, they selected a new sample of students, used the new technique to teach the specific topic, then gave the sample of students a test on that topic. Below are the mean test scores for each of the five studies, along with the population means for students taking the test after the 'traditional' instructional technique. For each...
There has been some debate about whether community-based participatory research is appropriate for some types of...
There has been some debate about whether community-based participatory research is appropriate for some types of health research, such as clinical trials and others. What do you think about this? How might the community be involved in nursing research?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT