From 3e4712f3fd8c3a0cdf3fff32a07fe914256fd32c Mon Sep 17 00:00:00 2001 From: DoolyBoi Date: Wed, 19 Oct 2022 20:10:46 -0700 Subject: added mass and gravitational pull calculation --- BlankConsoleLab/BlankConsoleLab.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 22fb44e..0ce3b2c 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -20,7 +20,7 @@ using std::endl; int main() { //seting up variables - float length, width, area, aspectRatio; + float length, width, area, aspectRatio, mass, gPull; bool dimensions = false; //keeps on looping until the user inputs a length and a width between 1 and 400 @@ -59,8 +59,12 @@ int main() cout << "NOTE: A lower aspect ratio (below 1) would provide more stability"; } + //calculating mass of kite + mass = (area * 135) / 1000; + //calculating gravitational pull + gPull = mass * 9.8; - + cout << "Your kite weighs " << gPull << " kg." } -- cgit v1.2.3