diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index b37bc81..6a0f006 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -13,7 +13,7 @@ using std::cout; using std::endl; //Initializing Variables -float w, l, area, aspect_ratio, mass; +float w, l, area, aspect_ratio, mass, grav_pull; const float mass_per = .135; int main() @@ -53,8 +53,13 @@ int main() } + //Calculate then output the mass of the kite mass = mass_per * area; - cout << "The total mass of your kite is: " << mass << " kg." << endl << endl; + cout << "The total mass of your kite will be: " << mass << " kg." << endl << endl; + + + grav_pull = mass * 9.8; + cout << "The gravitational pull on your kite will be: " << grav_pull << "N/kg." << endl; return 0; |