From d9f19bb5fdb96e8a1ccc8d68156905115123fd6b Mon Sep 17 00:00:00 2001 From: Evan Date: Sat, 22 Oct 2022 21:08:37 -0700 Subject: ratio --- BlankConsoleLab/BlankConsoleLab.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index b77f07f..f64dcd1 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -13,12 +13,15 @@ int main() float aspectr; float Mass; + //collects width of kite cout << "What is the Width of your kite in centimeters? "; cin >> Width; + //collects length of kite cout << "What is the Length of your kite in centimeters? "; cin >> Length; + //equation for area in centimeters then convert to meters Area = (Width * Length) / 2; Area2 = Area / 10000; aspectr = Width / Length; @@ -28,6 +31,7 @@ int main() cout << "Aspect Ratio = " << aspectr << endl; + //displays aspect ratio depending size if (aspectr >= 1) cout << "Your Aspect Ratio is greater than 1,\ lower aspect ratio would provide more stability" << endl; -- cgit v1.2.3