diff options
| -rw-r--r-- | cst116-Lab2-wilson-pseudo-code.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cst116-Lab2-wilson-pseudo-code.txt b/cst116-Lab2-wilson-pseudo-code.txt index 0b5853d..9baaa6d 100644 --- a/cst116-Lab2-wilson-pseudo-code.txt +++ b/cst116-Lab2-wilson-pseudo-code.txt @@ -1,2 +1,19 @@ -----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;
\ No newline at end of file |