diff options
Diffstat (limited to 'BlankConsoleLab/Pseudo Code.txt')
| -rw-r--r-- | BlankConsoleLab/Pseudo Code.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/BlankConsoleLab/Pseudo Code.txt b/BlankConsoleLab/Pseudo Code.txt new file mode 100644 index 0000000..7eadab8 --- /dev/null +++ b/BlankConsoleLab/Pseudo Code.txt @@ -0,0 +1,41 @@ +CST116-Lab_2-joetraver-Pseudo_code + +Directive: + +Calaculate the windchill from user inputs + + inputs: + + Temp- celcius or fahrenheit + celcius: -62 to 49.5 to be converted to fahrenheit + fahrenheit: -80 to 121 + + Wind speed- MPH + MPH: 0 to 231 + + +Function_1 (Pass by Reference) + + Request information within limits + Returns the user input for temperature in fahrenheit and wind speed in MPH + + +Function_2 (Pass by Value) + + Fahrenheit to celcius calculation + + F = (9/5)*C+32 + + +Function_3 (Pass by Value) + + Conducts the windchill calculation + + 35.74+.6215*T-35.75*W^.16+.4275*T*W^.16 + + T = Temp + W = Wind speed + +Final output + + "For (Function_2 temp output) fahrenheit and (Function_2 wind speed output) MPH the windchill is: (Funtion_3 output)"
\ No newline at end of file |