summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Taeza <[email protected]>2022-10-18 16:45:41 -0700
committerMatthew Taeza <[email protected]>2022-10-18 16:45:41 -0700
commite40d38e0fa5839451238bf2cb91a4ed0d4237881 (patch)
treef3b5dbbbeddec8d67c63feea53c6c641cf5810d7
parentFirst Commit (diff)
downloadcst116-lab1-matthewtaeza-e40d38e0fa5839451238bf2cb91a4ed0d4237881.tar.xz
cst116-lab1-matthewtaeza-e40d38e0fa5839451238bf2cb91a4ed0d4237881.zip
Final Commit
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index 1f4452f..f4c5b97 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -17,11 +17,14 @@ int main()
float CMarea; //Centimeters Area
float Marea; //Meters Area
float AR; //Aspect Ratio
+ float Mass; //Mass
+ float GP; //Gravitational Pull
+ float KGmass;
- cout << "input width of the kite ->> ";
+ cout << "input width of the kite in cm ->> ";
cin >> WidthK;
- cout << "input length of the kite ->> ";
+ cout << "input length of the kite in cm ->> ";
cin >> LengthK;
CMarea = (WidthK * LengthK) / 2;
@@ -30,13 +33,21 @@ int main()
AR = WidthK / LengthK;
+ Mass = ( 135 / Marea);
+
+ KGmass = (Mass / 1000);
+
+ GP = KGmass * 9.8;
+
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;
+ cout << "The mass of the kite in kilograms = " << KGmass << endl;
+ cout << "The gravitational pull on the kite in newtons = " << GP << endl;
if (AR >= 1)
{
- cout << "A lower aspect ratio would provide more stability";
+ //cout << "A lower aspect ratio would provide more stability";
}
}