diff options
| author | abd00l4h <[email protected]> | 2022-11-09 21:25:29 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-09 21:25:29 -0800 |
| commit | 2d48092aeb36bac0ad290963b0a98ea3e0087a96 (patch) | |
| tree | 744ba52131bd66ff5ec5534a0c3c513eb369f394 | |
| parent | removed a space (diff) | |
| download | cst116-lab2-abd00l4h-2d48092aeb36bac0ad290963b0a98ea3e0087a96.tar.xz cst116-lab2-abd00l4h-2d48092aeb36bac0ad290963b0a98ea3e0087a96.zip | |
Add files via upload
| -rw-r--r-- | BlankConsoleLab/CST116-Lab2-Output-Havaldar.txt | 24 | ||||
| -rw-r--r-- | BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt | 29 |
2 files changed, 53 insertions, 0 deletions
diff --git a/BlankConsoleLab/CST116-Lab2-Output-Havaldar.txt b/BlankConsoleLab/CST116-Lab2-Output-Havaldar.txt new file mode 100644 index 0000000..b28bab9 --- /dev/null +++ b/BlankConsoleLab/CST116-Lab2-Output-Havaldar.txt @@ -0,0 +1,24 @@ +Do you want to enter in Fahrenheit (F) or Celsius (C)
+F
+What is the value of Fahrenheit?
+(Enter a value between -80 & 121)
+162
+What is the value of Fahrenheit?
+(Enter a value between -80 & 121)
+104
+What is the value of Wind Speed?
+(Enter a value between 0 & 231)
+5
+At 104 degrees Fahrenheit and at a wind speed of 5MPH, the windchill is 111.644.
+
+
+Do you want to enter in Fahrenheit (F) or Celsius (C)
+C
+What is the value of Celcius?
+(Enter a value between -62 & 49.5)
+5
+That is 41 degrees in Fahrenheit
+What is the value of Wind Speed?
+(Enter a value between 0 & 231)
+100
+At 41 degrees Fahrenheit and at a wind speed of 100MPH, the windchill is 23.1493.
\ No newline at end of file diff --git a/BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt b/BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt new file mode 100644 index 0000000..3ec51e2 --- /dev/null +++ b/BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt @@ -0,0 +1,29 @@ +Start Program
+
+Initialize Function C_to_F which converts celcius to fahrenheit
+Initialize Function getUserInputs which get the user input for different variables
+Initialize Function calculate which calculates wind chill
+
+Intialize Constant max and min variables for fahrenheit, celcius, and wind speed
+
+Run main()
+Initialize string variable to check for if user uis going to use F or C
+Intialize float variables for temp, windspeed, and windchill
+
+Keep on asking user if they're going to input in F or C until correct response if given
+
+If F
+ Run Function getUserInputs to ask user for temperature in fahrenhiet between max and min
+else
+ Run Function getUserInputs to ask user for temperature in celcius between max and min
+ convert celcius to fahrenheit
+ Tell user what their new temperature in fahrenheit is
+
+
+Run function getUserInputs to ask user for wind speed between max and min
+
+Run function calculate to find out windchill
+
+Output to the user what they input and the result of windchill
+
+End Program
\ No newline at end of file |