diff options
| author | jacobdw22 <[email protected]> | 2022-11-05 17:38:08 -0700 |
|---|---|---|
| committer | jacobdw22 <[email protected]> | 2022-11-05 17:38:08 -0700 |
| commit | 6acea6e4babfdf583e43bd721b373af2e0c6243e (patch) | |
| tree | 3a73d81634e63c6e6d432d8347b236db162c03dd | |
| parent | simple changes (diff) | |
| download | cst116-lab2-jacobdw22-6acea6e4babfdf583e43bd721b373af2e0c6243e.tar.xz cst116-lab2-jacobdw22-6acea6e4babfdf583e43bd721b373af2e0c6243e.zip | |
Finished pseudo code
| -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 |