NEA Support

Below is a series of different programs that have pseudocode and flowcharts completed for them. Use them to try and relate your algorithm designs to your code.

Example 2 - Water Temperature Program - Selection

This program is designed to convert the temperature of the water from Fahreheit to Centigrade then display a message to the user.



Python Code

fahrenheit = float(input("Enter the temperature of the water in fahrenheit: "))
centigrade = (fahrenheit – 32) * (5/9)
if centigrade <= 0:
	print("Water Frozen")
elif centigrade >=100:
    print("Water Boiling")
print("Water is neither frozen or boiling")