diff options
| author | Joe Traver <[email protected]> | 2022-10-19 22:41:03 -0700 |
|---|---|---|
| committer | Joe Traver <[email protected]> | 2022-10-19 22:41:03 -0700 |
| commit | da3835960f2113b1817d97ffe9983bc0154d81f4 (patch) | |
| tree | e0538545b75b5bfa6498121cca197f59ab05fac6 /BlankConsoleLab | |
| parent | Added Pseudo Code (diff) | |
| download | cst116-lab1-joetraver30-master.tar.xz cst116-lab1-joetraver30-master.zip | |
Diffstat (limited to 'BlankConsoleLab')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 2 | ||||
| -rw-r--r-- | BlankConsoleLab/Program Output.txt | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index d08fb77..4ceba9e 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -35,6 +35,8 @@ int main() cout << "Width = " << width << " cm" << endl; + cout << " " << endl; + } while ((length < 1 || length > 400) || (width < 1 || width > 400)); diff --git a/BlankConsoleLab/Program Output.txt b/BlankConsoleLab/Program Output.txt new file mode 100644 index 0000000..fc9d5e4 --- /dev/null +++ b/BlankConsoleLab/Program Output.txt @@ -0,0 +1,30 @@ +-Run 1 (aspect ratio > 1) + +Enter length of kite in cm: 150 +Enter width of kite in cm: 300 +Length = 150 cm +Width = 300 cm + +Kite area = 2.25 square meters +WARNING! A lower aspect ratio would provide more stability +Total mass of the kite is: 0.30375 Kg +Gravitational pull applied to the kite is: 2.73375 Newtons + + + + +-Run 2 (Bad data then corrected) + +Enter length of kite in cm: 500 +Enter width of kite in cm: 100 +Length = 500 cm +Width = 100 cm + +Enter length of kite in cm: 300 +Enter width of kite in cm: 100 +Length = 300 cm +Width = 100 cm + +Kite area = 1.5 square meters +Total mass of the kite is: 0.2025 Kg +Gravitational pull applied to the kite is: 1.8225 Newtons
\ No newline at end of file |