diff options
| author | jacobdw22 <[email protected]> | 2022-10-19 22:49:16 -0700 |
|---|---|---|
| committer | jacobdw22 <[email protected]> | 2022-10-19 22:49:16 -0700 |
| commit | f27db41218f38b40281fc236a02f5f007221376d (patch) | |
| tree | fe0a3f39fcc34e5a36e344a72c2cf1431f70b2cb | |
| parent | simple changes (diff) | |
| download | cst116-lab1-jacobdw22-f27db41218f38b40281fc236a02f5f007221376d.tar.xz cst116-lab1-jacobdw22-f27db41218f38b40281fc236a02f5f007221376d.zip | |
simple changes
| -rw-r--r-- | BlankConsoleLab/cst116-lab1-wilson.cpp | 3 | ||||
| -rw-r--r-- | LabResults.txt | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/BlankConsoleLab/cst116-lab1-wilson.cpp b/BlankConsoleLab/cst116-lab1-wilson.cpp index cf977a6..166f731 100644 --- a/BlankConsoleLab/cst116-lab1-wilson.cpp +++ b/BlankConsoleLab/cst116-lab1-wilson.cpp @@ -14,6 +14,7 @@ int main() float width = 0; float length = 0; float area; + float mass; float aspect_ratio; while (true) { @@ -46,7 +47,7 @@ int main() else if (aspect_ratio < 1) cout << "Aspect ratio < 1. Good aspect ratio.\n"; - float mass = 135 * (area / 10000); + mass = 135 * (area / 10000); cout << "\nThe mass of your kite is " << mass << " grams / sq meter.\n"; diff --git a/LabResults.txt b/LabResults.txt index 6af62eb..ac10a69 100644 --- a/LabResults.txt +++ b/LabResults.txt @@ -10,3 +10,12 @@ WARNING! Aspect ratio >= 1. Unstable. --Part 2: Can it fly?-- +What is the width of the kite in centimeters: 15 +What is the length of the kite in centimeters: 15 + +The width is 15 centimeters and the length is 15 centimeters. +The area of the kite is 0.01125 square meters. + +WARNING! Aspect ratio >= 1. Unstable. + +The mass of your kite is 1.51875 grams / sq meter.
\ No newline at end of file |