aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Pseudocode-Preston.txt
blob: b23ed572f610668f010666426c0a47efdeb2cfd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Pseudocode for Ch.6 Debug

start main

variable fahrenheit = 0.0
variable celcius = 0.0

print 'Enter temperature in Fahrenheit
input fahrenheit

celcius = 5.0 divided by 9.0 times (fahrenheit minus 32)

print fahrenheit + 'degrees F =' celcius 'degrees C'

end main