blob: f5b91c216b4ad227187a35a925121c7912d30ea5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
-----Psuedo-Code-----
DISPLAY "Please enter a temperature between -62 and 49.5 degrees Celsius: ";
READ Celsius;
IF Celsius is between CMAX and CMIN, RUN CtoF;
Fahrenheit = (Celsius * 9.0 / 5.0) + 32.0;
DISPLAY Celsius " Degrees Celsius is approximately " Fahrenheit " Degrees Fahrenheit
ELSE loop;
RUN WindSpeedFinder;
DISPLAY "Please enter the wind speed between 0 and 231 mph: ";
READ windspeed
IF windspeed is between the given limits;
DISPLAY "The windspeed is " *windspeed " mph.";
ELSE loop;
RUN WindChill
Chill = 35.74 + (0.6215 * CtoF) - (35.75 * (pow(WindSpeedFinder, x))) + (0.4275 * CtoF * (pow(WindSpeedFinder, x)));
DISPLAY "The wind chill is: " WindChill;
END;
|