diff options
| author | Anibal LopezBonilla <[email protected]> | 2022-10-05 16:30:44 -0700 |
|---|---|---|
| committer | Anibal LopezBonilla <[email protected]> | 2022-10-05 16:30:44 -0700 |
| commit | 1b837b69cf67e7bbaa3878192d86442cc9efcc18 (patch) | |
| tree | d4027f949f95c1f9762e3597053d20bf6c46dba6 /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-lab1-lopez-bonilla-1b837b69cf67e7bbaa3878192d86442cc9efcc18.tar.xz cst116-lab1-lopez-bonilla-1b837b69cf67e7bbaa3878192d86442cc9efcc18.zip | |
Push 1 Part 1
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"; + } + + } |