diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..e83e6f9 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -11,6 +11,50 @@ using std::endl; int main() { - cout << "Hello World!\n"; + //Variables used in the programming. + float width; + float length; + float Area; + float aspectR; + + //Welcome Message + cout << "Hello welcome to the Kite App" << endl << endl; + + //Enter Width and Length in centimeters + cout << "Please enter your kite's width in CM "<< endl; + cin >> width; + cout << "Please Enter your kite's length in CM " <<endl; + cin >> length; + + + //Output the measures entered by user + cout << "Your kite Measurements is "; + cout << width; + cout << " By "; + cout <<length << endl; + + //Area is calculated and converted to square meters. + + //Area calculation + Area = (width * length) / 2; + + //Conversion calculation to square meters. + Area = Area / 10000; + + //Output of the area calculation to square meters. + cout << "The area of the kite in squre meter is "; + cout << Area; + cout << " Square Meters" <<endl; + + aspectR = width / length; + + cout << "The aspect ratio of your kite is "; + cout << aspectR << endl; + if (aspectR >= 1) + { + cout << "Keep in mind, a lower aspect ratio would provide more stability"; + } + + } |