From ff3d3de98e5a500e8ab37101319aea02148a8d2f Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Mon, 7 Nov 2022 20:37:48 -0800 Subject: Pseudo Code --- BlankConsoleLab/BlankConsoleLab.cpp | 15 ------------ BlankConsoleLab/BlankConsoleLab.vcxproj | 8 +++---- BlankConsoleLab/Pseudo Code.txt | 41 +++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 19 deletions(-) create mode 100644 BlankConsoleLab/Pseudo Code.txt (limited to 'BlankConsoleLab') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..8b13789 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -1,16 +1 @@ -// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. -// - -#include - -using namespace std; - -using std::cout; -using std::cin; -using std::endl; - -int main() -{ - cout << "Hello World!\n"; -} diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj b/BlankConsoleLab/BlankConsoleLab.vcxproj index db2e734..d2e3ee2 100644 --- a/BlankConsoleLab/BlankConsoleLab.vcxproj +++ b/BlankConsoleLab/BlankConsoleLab.vcxproj @@ -29,26 +29,26 @@ Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode diff --git a/BlankConsoleLab/Pseudo Code.txt b/BlankConsoleLab/Pseudo Code.txt new file mode 100644 index 0000000..7eadab8 --- /dev/null +++ b/BlankConsoleLab/Pseudo Code.txt @@ -0,0 +1,41 @@ +CST116-Lab_2-joetraver-Pseudo_code + +Directive: + +Calaculate the windchill from user inputs + + inputs: + + Temp- celcius or fahrenheit + celcius: -62 to 49.5 to be converted to fahrenheit + fahrenheit: -80 to 121 + + Wind speed- MPH + MPH: 0 to 231 + + +Function_1 (Pass by Reference) + + Request information within limits + Returns the user input for temperature in fahrenheit and wind speed in MPH + + +Function_2 (Pass by Value) + + Fahrenheit to celcius calculation + + F = (9/5)*C+32 + + +Function_3 (Pass by Value) + + Conducts the windchill calculation + + 35.74+.6215*T-35.75*W^.16+.4275*T*W^.16 + + T = Temp + W = Wind speed + +Final output + + "For (Function_2 temp output) fahrenheit and (Function_2 wind speed output) MPH the windchill is: (Funtion_3 output)" \ No newline at end of file -- cgit v1.2.3