Question: Write and test a function using an if / else structure to determine whether a person has a fever. The input should be a scalar
Write and test a function using an ifelse structure to determine whether a person has a fever. The input should be a scalar value of temperature in degrees F
If the function input is greater than assign the string value "You have a fever" to the output variable.
If the function input is less than or equal to assign the string value "You do not have a fever" to the output variable.
Be sure to define your output exactly as specified in the problem statement. If you don't it will be counted as incorrect.
Write and test a function using an ifelse structure to determine whether a person has a fever. The input should be a scalar value of temperature in degrees F
If the function input is greater than assign the string value "You have a fever" to the output variable.
If the function input is less than or equal to assign the string value "You do not have a fever" to the output variable.
Be sure to define your output exactly as specified in the problem statement. If you don't it will be counted as incorrect.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
