From 2d48092aeb36bac0ad290963b0a98ea3e0087a96 Mon Sep 17 00:00:00 2001 From: abd00l4h <114624309+abd00l4h@users.noreply.github.com> Date: Wed, 9 Nov 2022 21:25:29 -0800 Subject: Add files via upload --- BlankConsoleLab/CST116-Lab2-Output-Havaldar.txt | 24 ++++++++++++++++++ .../CST116-Lab2-PsuedoCode-Havaldar.txt | 29 ++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 BlankConsoleLab/CST116-Lab2-Output-Havaldar.txt create mode 100644 BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt (limited to 'BlankConsoleLab') 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 -- cgit v1.2.3