From ba2f041fa30f136aeb6940c7c29ce0fa5e047b97 Mon Sep 17 00:00:00 2001 From: twsta Date: Tue, 11 Oct 2022 19:17:56 -0700 Subject: added warning message for high ratios --- BlankConsoleLab/BlankConsoleLab.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') 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; + } } -- cgit v1.2.3