summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
authortwsta <twsta@TRENTON-PC-V2>2022-10-11 19:17:56 -0700
committertwsta <twsta@TRENTON-PC-V2>2022-10-11 19:17:56 -0700
commitba2f041fa30f136aeb6940c7c29ce0fa5e047b97 (patch)
tree725d0f84cf54384f1ae51a2790ec1c7ad24a5e23 /BlankConsoleLab/BlankConsoleLab.cpp
parentadded ratio calculation (diff)
downloadcst116-lab1-stark-ba2f041fa30f136aeb6940c7c29ce0fa5e047b97.tar.xz
cst116-lab1-stark-ba2f041fa30f136aeb6940c7c29ce0fa5e047b97.zip
added warning message for high ratios
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp6
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;
+ }
}