summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BlankConsoleLab/cst116-lab1-wilson.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}