diff options
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; } |