diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 7792c9f..607525d 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -13,13 +13,16 @@ // 3. If [Tunit] = F is selected: // 1. Print "Enter temperature value between -80 and 121 degrees Fahreneit" // 2. Input [TvalF] +// 3. Clamp TvalF to limits // 4. If [Tunit] = C is selected: // 1. Print "Enter temperature value between -52 and 49.5 degrees Celsius" // 2. Input [TvalC] +// 3. Clamp TvalC to limits // 6. Print "Enter a wind speed, in miles per hour, between 0 and 231" // 1. Declare constant [Wmax] = 231 // 2. Declare constant [Wmin] = 0 // 3. Input [Wspeed] +// 4. Clamp Wspeed to limits // 7. F input function: // 1. Declare [FtoCval] = ( [TvalF] - 32 ) * ( 5 / 9 ) // 2. [TvalC] = [FtoCval] |