summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Bouchillon <[email protected]>2022-11-09 13:06:12 -0800
committerGitHub <[email protected]>2022-11-09 13:06:12 -0800
commitb95532f91c9a00c894d27b022452f59587bf6e30 (patch)
treea38bb31f0163a817b4cf5c1e460efc2a203c45af
parentfinal Commit (diff)
downloadcst116-lab2-daboochillin-master.tar.xz
cst116-lab2-daboochillin-master.zip
Add files via uploadHEADmaster
-rw-r--r--Lab2 PseudoCode.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/Lab2 PseudoCode.txt b/Lab2 PseudoCode.txt
new file mode 100644
index 0000000..f0bfd52
--- /dev/null
+++ b/Lab2 PseudoCode.txt
@@ -0,0 +1,28 @@
+define variables UserInputTemp, WindSpeed, CorF, and Windchill
+call function GetTemp
+display "Please enter a temperature in Celcius or Farenheit"
+store input into UserInputTemp
+display "If you entered a temperature in Celcius please enter 'C' and if you entered a temperature in Farenheit please enter 'F'. "
+If the input is not C or F
+display "Please enter either 'C' or 'F'
+if the input is F
+verify value is between -80 and 121
+if its not display "Please enter a temperature between -80 and 121."
+display "Please enter a temperature in Farenheit: "
+take input for UserInputTemp
+if the input is C
+verify value is between -62 and 49.5
+if its not display "Please enter a temperature between -62 and 49.5."
+display "Please enter a temperature in Celcius: "
+take input for UserInputTemp
+display "The temperature you entered is ", call function CelciusToFarenheit(UserInputTemp), " degrees in Farenheit."
+return UserInputTemp
+call function GetWindSpeed
+display "Please enter a wind speed in Miles Per Hour: "
+take input for WindSpeed
+verify WindSpeed is between 0 and 231.
+if it's not display "Please enter a wind speed between 0 and 231 Miles Per Hour", "Please enter a wind speed in Miles Per Hour: "
+retake input for WindSpeed
+call function WindChill
+Do the math to calculate windchill and store it in variable windchill
+display "Based on your inputs of ",CelciusToFarenheit(UserInputTemp), " and ", WindSpeed, ", the wind chill is ", windchill, "." \ No newline at end of file