summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnibal LopezBonilla <[email protected]>2022-10-19 22:42:05 -0700
committerAnibal LopezBonilla <[email protected]>2022-10-19 22:42:05 -0700
commit7bda07764186a875f1c468b736507c0346befcc5 (patch)
tree2d826682ba34b5d1033ffeac149693c0d9d91701
parentsmall details Push 9 (diff)
downloadcst116-lab1-lopez-bonilla-7bda07764186a875f1c468b736507c0346befcc5.tar.xz
cst116-lab1-lopez-bonilla-7bda07764186a875f1c468b736507c0346befcc5.zip
Push 10
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp18
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;
}