Question: Design an algorithm and write a C++ program that prompts the user to input his temperature in degrees Fahrenheit (F). If the user's temperature is
Design an algorithm and write a C++ program that prompts the user to input his temperature in degrees Fahrenheit (F). If the user's temperature is greater than 98.6, then print to the screen the following message: You have a fever. Drink lots of liquids and healthy food. Dress light and get some rest. If the user's temperature is less than or equal to 98.6, then print to the screen the following message: You don't have a fever. Go study. Sample Outputs nter your temperature 100 ou have a fever. Drink lots of liquids and healthy food. ress light and get some rest Process returned 0 (0x0) execution time 6.715 s Press any key to continue Enter your temperature: 98 ou don't have a fever. Go study Process returned 0 (0x0) execution time 15.215 s Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
