summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt
diff options
context:
space:
mode:
authorDoolyBoi <[email protected]>2022-11-11 01:27:09 -0800
committerDoolyBoi <[email protected]>2022-11-11 01:27:09 -0800
commitd5359eb6f6172d48fd4edb8d87a3dee93adebd12 (patch)
treef94f078e001bde34057613c89265da6f2ec6d36b /BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt
parentfixed problem with code not working with online compiliers (diff)
parentAdd files via upload (diff)
downloadcst116-lab2-abd00l4h-master.tar.xz
cst116-lab2-abd00l4h-master.zip
Merge branch 'master' of https://github.com/CST116/cst116-lab2-abd00l4hHEADmaster
Diffstat (limited to 'BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt')
-rw-r--r--BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt29
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