From b66b1b69f580740c7b9b5973ebdf30669ac41677 Mon Sep 17 00:00:00 2001 From: "smithbenjamin2022@gmail.com" Date: Wed, 5 Oct 2022 16:38:39 -0700 Subject: More pushing --- BlankConsoleLab/BlankConsoleLab.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') 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; -- cgit v1.2.3