diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 17 |
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"; } } |