diff options
| author | JonCr <[email protected]> | 2022-11-11 00:05:05 -0800 |
|---|---|---|
| committer | JonCr <[email protected]> | 2022-11-11 00:05:05 -0800 |
| commit | efb9c0fdaf9fd4450f7ea4b4c99fb3fabc4469cf (patch) | |
| tree | d8bd2b95bdae382099baca5b71727731d6cfb5e0 /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | Debugging (diff) | |
| download | cst116-lab2-cognitiveshadow-efb9c0fdaf9fd4450f7ea4b4c99fb3fabc4469cf.tar.xz cst116-lab2-cognitiveshadow-efb9c0fdaf9fd4450f7ea4b4c99fb3fabc4469cf.zip | |
Added comments
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index f70e4dc..03121ae 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -17,6 +17,7 @@ float calcTemp(float& temp); float getWindSpeed(); void calcWindChill(float temp, float windSpeed); +// function main, no inputs, returns 0 int main() { float temp; @@ -33,6 +34,7 @@ int main() return 0; } +// function selectType, no inputs, returns select int selectType() { char choose = '0'; @@ -53,6 +55,7 @@ int selectType() return select; } +// function getTemp, inputs select, returns temp float getTemp(int& select) { float temp =-100; @@ -87,6 +90,7 @@ float getTemp(int& select) return temp; } +// function calcTemp, nputs temp, returns temp float calcTemp(float& Celsius) { float Fahrenheit = 0; @@ -95,6 +99,7 @@ float calcTemp(float& Celsius) return Fahrenheit; } +// function getWindSpeed, no inputs, returns windSpeed float getWindSpeed() { float windSpeed = -100; @@ -112,6 +117,7 @@ float getWindSpeed() return windSpeed; } +// function getWindChill, inputs temp and windSpeed, no return void calcWindChill(float temp, float windSpeed) { float windChill = 0; |