blob: 0a856efdeb61b7e97afb1d2e5621736d9bc3e7ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Under main
set float temp to 122
set float wspeed to 232
check if fahrenheit is true
set string input
output are you entering temp in celcius
input input
if input is a certain word (yes)
then fahrenheit is false
while it is fahrenheit and the min is more than -80 and the max is less than 121
or if it isnt fahrenheit and the min is more than -62 and the max is less than 49.5
if it is fahrenheit
output input a fahrenheit temperature that is greater than minF but less than MaxF
else then output onput a celcius temperature that is greater than minC but less than maxC
input temperature
if not fahrenheit, use convertCelciustoFahrenheit function
while minW is greater than wspeed and maxW is less than wspeed,
output input a wind speed in mph that is greater than minW but less than maxW
function outputdata using temp, wspeed, and a WindChillcalc function
done
|