Abdul is a student of Watford International School. He wants to develop a computer program to display
a message on the screen according to the temperature fed by the user. If the temperature is greater than
40 oC it displays “Hot – go for swimming”, if the temperature is greater than 20 oC it displays “Mild –
play football” otherwise it displays “Cold – stay at home”.
c. Construct an algorithm for the given problem to produce the expected output.
Answers
Answered by
1
1) Start.
2) Declare variable Temp
3) if(Temp > 40)
print (Hot - go for swimming)
4) else if(Temp > 20)
print (Mild - play football)
5) else
print (Cold - stay at home)
6) stop
Hope it helps :)
Answered by
1
Hey mate here is your answer please mark me as a brainlist please...
Attachments:
Similar questions