diff options
| author | DoolyBoi <[email protected]> | 2022-11-11 01:27:09 -0800 |
|---|---|---|
| committer | DoolyBoi <[email protected]> | 2022-11-11 01:27:09 -0800 |
| commit | d5359eb6f6172d48fd4edb8d87a3dee93adebd12 (patch) | |
| tree | f94f078e001bde34057613c89265da6f2ec6d36b /BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt | |
| parent | fixed problem with code not working with online compiliers (diff) | |
| parent | Add files via upload (diff) | |
| download | cst116-lab2-abd00l4h-master.tar.xz cst116-lab2-abd00l4h-master.zip | |
Diffstat (limited to 'BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt')
| -rw-r--r-- | BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt | 29 |
1 files changed, 29 insertions, 0 deletions
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 |