From 54a2f610614eb77376a3b45f1298e923714766af Mon Sep 17 00:00:00 2001 From: Matthew Taeza Date: Sun, 16 Oct 2022 12:11:50 -0700 Subject: First Commit --- BlankConsoleLab/BlankConsoleLab.cpp | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..1f4452f 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -11,6 +11,33 @@ using std::endl; int main() { - cout << "Hello World!\n"; + //Variables + float WidthK; //Width of Kite + float LengthK; //Length of Kite + float CMarea; //Centimeters Area + float Marea; //Meters Area + float AR; //Aspect Ratio + + cout << "input width of the kite ->> "; + cin >> WidthK; + + cout << "input length of the kite ->> "; + cin >> LengthK; + + CMarea = (WidthK * LengthK) / 2; + + Marea = CMarea / 10000; + + AR = WidthK / LengthK; + + cout << "The area of the kite in centimeters = " << CMarea << endl; + cout << "The area of the kite in meters = " << Marea << endl; + cout << "The aspect ratio of the kite = " << AR << endl; + + if (AR >= 1) + { + cout << "A lower aspect ratio would provide more stability"; + } + } -- cgit v1.2.3