diff options
| author | Taylor Rogers <[email protected]> | 2022-11-08 09:10:22 -0800 |
|---|---|---|
| committer | Taylor Rogers <[email protected]> | 2022-11-08 09:10:22 -0800 |
| commit | 97ebd8634a83e943f575eb5fde81f75cffb2803a (patch) | |
| tree | 92ff7115f916e6559dd4643a8f5fc0b5f9d3010e /BlankConsoleLab | |
| parent | Formatting changes (diff) | |
| download | cst116-lab2-taylorrog-97ebd8634a83e943f575eb5fde81f75cffb2803a.tar.xz cst116-lab2-taylorrog-97ebd8634a83e943f575eb5fde81f75cffb2803a.zip | |
Removed pseudo comments
Diffstat (limited to 'BlankConsoleLab')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 2fb223a..a63d56b 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -3,37 +3,7 @@ // Name: Taylor Rogers // Assignment: Lab 2 // -// Pseudo Code: -// 1. Print "Please enter F for Fahrenheit, or C for Celsius" -// 1. Declare constant [Fmax] = 121 -// 2. Declare constant [Fmin] = -80 -// 3. Declare constant [Cmax] = 49.5 -// 4. Declare constant [Cmin] = -62 -// 2. Input [Tunit] -// 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] -// 8. C input function: -// 1. Declare [CtoFval] = (9 / 5 ) * [TvalC] + 32 -// 2. [TvalF] = [CtoFval] -// 9. Windchill function: -// 1. [Wchill] = 35.74 + .6215 * [TvalF] - 35.75 * ( [Wspeed] ^ 0.16 ) + 0.4275 * [TvalF] * ( [Wspeed] ^ 0.16 ) -// 10. Print headers "Temperature in F" , "Temperature in C", "Windpseed", "Windchill" -// 11. Print [TvalF] , [TvalC] , [Wspeed] , [Wchill] -// + #include <iostream> |