Answer to Question #275968 in Algorithms for Chanumi

Question #275968

A group of medical students were monitoring the body temperature of a patient daily basis. Students captured 10 temperature readings in Celsius on a particular day.


1. Write an Algorithm to input these ten values and get the average temperature for that day. if the average temperature value is in between 970 Fahrenheit and 990 Fahrenheit then display the message “Your body temperature is normal…”. If it is more than 100.40 Fahrenheit then display the message “You have a fever caused by an infection or illness…”.





1
Expert's answer
2021-12-06T19:17:50-0500

input::

array tc(10) \\ 10 temperature readings in Celsius


t=0

for i from 1 to 10

t=t+t[i] \\ calculate average temperature


tf=1.8*t+32 \\ convert Celsius to Fahrenheit

if 970 <= tf <= 990 then

display “Your body temperature is normal”

else if tf > 100.4 then

display “You have a fever caused by an infection or illness”


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS