I monitor life support for the sim lab. Our rule is simple:oxygen below 15 percent means a warning, everything else isnominal. Type the reading in and put the message on screen soI don't have to say it out loud every single time.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
if with one else. It does not need a chain.Only one-star challenges have this section. If you already know how to begin, skip it — and when you move up to two stars, working out the order yourself is part of the job.
double.Parse.if for the alert case first, using the comparison the brief tells you.else for everything else.Oxygen level (%): 12
ALERT: oxygen below 15%. Check the scrubber or switch to a backup supply.A reading of 18 percent should print nominal, not an alert. Test 12, 15, and 18 before you submit — 15 exactly still has to be nominal, since the brief's boundary is “below” 15, not “at or below.”
Your requirements list and your program file, named cc-oxygen-alarm.