diff options
| author | Wyatt <[email protected]> | 2022-10-18 20:47:13 -0700 |
|---|---|---|
| committer | Wyatt <[email protected]> | 2022-10-18 20:47:13 -0700 |
| commit | 913adeb124f1bb02a2f8770c1b891eff81f4c217 (patch) | |
| tree | b43fe7e59f7c4693105c5956707a0c3738fab853 /BlankConsoleLab | |
| parent | finished (diff) | |
| download | cst116-lab1-johnson-master.tar.xz cst116-lab1-johnson-master.zip | |
Diffstat (limited to 'BlankConsoleLab')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index bf375fb..5d0a079 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -11,6 +11,7 @@ using namespace std; const float kite_weight = 135; +const float gravitational_constant = 9.8; int main() { @@ -55,7 +56,7 @@ int main() float mass = (area * kite_weight) / 10000; cout << "Your kites mass is: " << mass << "kg." << endl; - float gravitational_pull = mass * 9.8; + float gravitational_pull = mass * gravitational_constant; cout << "The kites gravitational pull is: " << gravitational_pull << "N/kg." << endl; } |