Write out the logic to the following problems.
Example: Represent the logic of a decision whether to wear a coat if the temperature is less than 60 degrees Fahrenheit, and not to wear one if the temperature is 60 degrees or greater.
Solution:
start
Declarations
integer temperature
output “Enter temperature: “
input temperature
if (temperature <60)
output “Wear coat.”
else
output “Don’t wear coat.”
end if
stop