From 29ef1039878a63f0c7f2820cedefad4d7625a337 Mon Sep 17 00:00:00 2001 From: jacobdw22 Date: Wed, 19 Oct 2022 22:47:04 -0700 Subject: simple changes --- BlankConsoleLab/cst116-lab1-wilson.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BlankConsoleLab/cst116-lab1-wilson.cpp b/BlankConsoleLab/cst116-lab1-wilson.cpp index 0811e3f..cf977a6 100644 --- a/BlankConsoleLab/cst116-lab1-wilson.cpp +++ b/BlankConsoleLab/cst116-lab1-wilson.cpp @@ -14,7 +14,6 @@ int main() float width = 0; float length = 0; float area; - const int mass = 0; float aspect_ratio; while (true) { @@ -47,7 +46,10 @@ int main() else if (aspect_ratio < 1) cout << "Aspect ratio < 1. Good aspect ratio.\n"; + float mass = 135 * (area / 10000); + cout << "\nThe mass of your kite is " << mass << " grams / sq meter.\n"; + return 0; } -- cgit v1.2.3