Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Pls do not use using namespace std; pls i repeat don't 4.2 - If/Else (Part 2) / 10. Dangerous Temperatures saved 20 points possible Reset
Pls do not use using namespace std; pls i repeat don't
4.2 - If/Else (Part 2) / 10. Dangerous Temperatures saved 20 points possible Reset to Starter Code Most people know that the average human body temperature is 98.6 Fahrenheit (F). However, body temperatures can reach extreme levels, at which point the person will likely become unconscious (or worse). Those extremes are at or below 86 F and at or above 106 F. Write a program that asks the user for a body temperature in Fahrenheit (decimals are ok). Check if that temperature is in the danger zone (for unconsciousness) or not and produce the relevant output shown below. Also check if the user entered a number greater than zero. If they didn't, display an error message and don't process the rest of this program. If the entry was valid, convert the temperature from Fahrenheit to Celsius. and output it to the user. Fto C formula: (temp - 32) 5/9 Prompts Enter a body temperature in Fahrenheit: [possible user input: 107] Possible Outputs This person is likely unconscious and in danger Temperatura in Celsius is: 41.6667 This person is likely conscious Temperature in Celsius is: 37 Invalid only Notes and Hints 1) This exercise is testing your knowledge of Flags and Logical Operators. Use both! 2) Do not use constants for the numbers in the F to C formula. Write it as-is. 3] Hint: The order in which you do your decision/conditional statements makes all the difference 4) Remember: Do not let this program do any math if the user's entry is invalidStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started