summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
author[email protected] <[email protected]>2022-10-05 16:38:39 -0700
committer[email protected] <[email protected]>2022-10-05 16:38:39 -0700
commitb66b1b69f580740c7b9b5973ebdf30669ac41677 (patch)
tree9aaa0c49d5b1003aff3859217e423fb2f2c431d7 /BlankConsoleLab/BlankConsoleLab.cpp
parentPush I lost count (diff)
downloadcst116-lab1-smith-b66b1b69f580740c7b9b5973ebdf30669ac41677.tar.xz
cst116-lab1-smith-b66b1b69f580740c7b9b5973ebdf30669ac41677.zip
More pushing
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp9
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;