diff options
| author | jacobdw22 <[email protected]> | 2022-10-19 22:47:04 -0700 |
|---|---|---|
| committer | jacobdw22 <[email protected]> | 2022-10-19 22:47:04 -0700 |
| commit | 29ef1039878a63f0c7f2820cedefad4d7625a337 (patch) | |
| tree | 5b0d4ef6dafe2e6f64fe5f1d0ce4f8a51fa08682 /BlankConsoleLab | |
| parent | simple changes (diff) | |
| download | cst116-lab1-jacobdw22-29ef1039878a63f0c7f2820cedefad4d7625a337.tar.xz cst116-lab1-jacobdw22-29ef1039878a63f0c7f2820cedefad4d7625a337.zip | |
simple changes
Diffstat (limited to 'BlankConsoleLab')
| -rw-r--r-- | BlankConsoleLab/cst116-lab1-wilson.cpp | 4 |
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; } |