diff options
| author | twsta <twsta@TRENTON-PC-V2> | 2022-10-11 19:17:56 -0700 |
|---|---|---|
| committer | twsta <twsta@TRENTON-PC-V2> | 2022-10-11 19:17:56 -0700 |
| commit | ba2f041fa30f136aeb6940c7c29ce0fa5e047b97 (patch) | |
| tree | 725d0f84cf54384f1ae51a2790ec1c7ad24a5e23 /BlankConsoleLab | |
| parent | added ratio calculation (diff) | |
| download | cst116-lab1-stark-ba2f041fa30f136aeb6940c7c29ce0fa5e047b97.tar.xz cst116-lab1-stark-ba2f041fa30f136aeb6940c7c29ce0fa5e047b97.zip | |
added warning message for high ratios
Diffstat (limited to 'BlankConsoleLab')
| -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 b0243ff..da5b275 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -7,7 +7,7 @@ int main() int width, length; float area, ratio; - cout << "Kite Math 0.1" << endl; + cout << "Kite Math 0.2" << endl; cout << "Please input the width of your kite:" << endl; cin >> width; cout << "Please input the length of your kite:" << endl; @@ -19,5 +19,9 @@ int main() area = (width * length) / 2; area = area / 10000; ratio = width / length; + + if (ratio >= 1) { + cout << "A lower aspect ratio may provide more kit stability" << endl; + } } |