From 41c8fabd96b599c4fd4562c47541bb470219e3a0 Mon Sep 17 00:00:00 2001 From: jacobdw22 Date: Wed, 19 Oct 2022 23:02:15 -0700 Subject: final changes --- BlankConsoleLab/cst116-lab1-wilson.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'BlankConsoleLab/cst116-lab1-wilson.cpp') 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; } -- cgit v1.2.3