diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 2e522be..9f65cad 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -1,6 +1,12 @@ // BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. // +/*Name: Anibal Lopez-Bonilla +*Project Lab01 Kite +* Last Editied 10/19/22 +* +*/ + #include <iostream> using namespace std; @@ -61,22 +67,30 @@ int main() cout << "The area of the kite in squre meter is "; cout << Area; cout << " Square Meters" <<endl; - //Aspect Ratio + //Aspect Ratio calculation aspectR = width / length; + //Aspect Ratio Message cout << "The aspect ratio of your kite is "; cout << aspectR << endl; + + // if the aspect ratio is greater than equal to 1 display the + // following message. if (aspectR >= 1) { + //message used if the aspect ratio is greater than equal to one cout << "Keep in mind, a lower aspect ratio would provide more stability"; } + //Mass calculation Mass = Area * 135 / 1000; - + //Gravity Pull Calculation graPull = Mass * 9.8; + //Display the result of the mass calculation cout << "Your Kite Weighs: " << Mass << endl ; + //Display the result of the gravitational pull calculation cout << "The gravitational pull of your kite is " << graPull << endl; } |