summaryrefslogtreecommitdiff
path: root/BlankConsoleLab
diff options
context:
space:
mode:
authorjacobdw22 <[email protected]>2022-10-19 22:47:04 -0700
committerjacobdw22 <[email protected]>2022-10-19 22:47:04 -0700
commit29ef1039878a63f0c7f2820cedefad4d7625a337 (patch)
tree5b0d4ef6dafe2e6f64fe5f1d0ce4f8a51fa08682 /BlankConsoleLab
parentsimple changes (diff)
downloadcst116-lab1-jacobdw22-29ef1039878a63f0c7f2820cedefad4d7625a337.tar.xz
cst116-lab1-jacobdw22-29ef1039878a63f0c7f2820cedefad4d7625a337.zip
simple changes
Diffstat (limited to 'BlankConsoleLab')
-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;
}