diff options
| author | jacobdw22 <[email protected]> | 2022-10-19 23:02:15 -0700 |
|---|---|---|
| committer | jacobdw22 <[email protected]> | 2022-10-19 23:02:15 -0700 |
| commit | 41c8fabd96b599c4fd4562c47541bb470219e3a0 (patch) | |
| tree | 12817a88660d8368a9b3d51e13fff1ae0cb08889 /BlankConsoleLab/cst116-lab1-wilson.cpp | |
| parent | semi-final changes (diff) | |
| download | cst116-lab1-jacobdw22-master.tar.xz cst116-lab1-jacobdw22-master.zip | |
Diffstat (limited to 'BlankConsoleLab/cst116-lab1-wilson.cpp')
| -rw-r--r-- | BlankConsoleLab/cst116-lab1-wilson.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/BlankConsoleLab/cst116-lab1-wilson.cpp b/BlankConsoleLab/cst116-lab1-wilson.cpp index 81f393d..bec8efa 100644 --- a/BlankConsoleLab/cst116-lab1-wilson.cpp +++ b/BlankConsoleLab/cst116-lab1-wilson.cpp @@ -16,6 +16,7 @@ int main() float area; float mass; float aspect_ratio; + float gravitational_pull; while (true) { cout << "What is the width of the kite in centimeters: "; @@ -49,7 +50,11 @@ int main() mass = 135 * (area / 10000); - cout << "\nThe mass of your kite is " << mass << " grams / sq meter.\n"; + cout << "\nThe mass of your kite is " << mass << " grams.\n"; + + gravitational_pull = mass * 9.81; + + cout << "\nThe gravitational pull of your kite is " << gravitational_pull << " grams * m/s^2\n"; return 0; } |