Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions Today we are thinking about temperature! You are going to write a program to determine whether or not a person has a fever.
Instructions Today we are thinking about temperature! You are going to write a program to determine whether or not a person has a fever. In degrees Fahrenheit, normal body temperature can be between 98.4F - 98.9F. We will assume that all temperatures will be at least 98.4F and just worry about whether or not the temperature is too high. If the temperature is normal, we will output Your temperature is normal. Otherwise, the program will output You have a temperature! Details of your program are defined below. Details Input The program takes in the following input: a floating-point variable named bodyTemperature, representing the temperature of a person in degrees Fahrenheight [F). Note that input is read in for you. Processing You will check if the temperature above 98.9F. Output If body Temperature is above 98.9, the program will output: You have a temperature! Otherwise, it will output: Your temperature is normal.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Answer Let the function which does the ...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