From f27db41218f38b40281fc236a02f5f007221376d Mon Sep 17 00:00:00 2001 From: jacobdw22 Date: Wed, 19 Oct 2022 22:49:16 -0700 Subject: simple changes --- BlankConsoleLab/cst116-lab1-wilson.cpp | 3 ++- LabResults.txt | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3