diff options
| author | tafaar <[email protected]> | 2022-11-08 18:08:56 -0800 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-11-08 18:08:56 -0800 |
| commit | b20f6b3c9537d7089c64ce56c75f72a0e39d74af (patch) | |
| tree | 6bed7a9c7faa6b2697c81c06931ec0184c573d61 | |
| parent | added comments (diff) | |
| download | cst116-lab2-hill-b20f6b3c9537d7089c64ce56c75f72a0e39d74af.tar.xz cst116-lab2-hill-b20f6b3c9537d7089c64ce56c75f72a0e39d74af.zip | |
Cleaned up variable declaration
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed4bbe7..8221ee7 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -12,7 +12,11 @@ float tempCelsius, windCelsius; float tempFahrenheit, windFahrenheit; float windSpeed; -const float minF = -80.0, maxF = 121.0, minC = -62.0, maxC = 49.5, minW = 0, maxW = 231; +// Constants for the range of acceptable temperatures and wind speed. + +const float minF = -80.0, maxF = 121.0; +const float minC = -62.0, maxC = 49.5; +const float minW = 0, maxW = 231; float ConvertTemperature(float temperature, char initialSystem) { |