diff options
| author | Trevor Bouchillon <[email protected]> | 2022-10-16 16:28:55 -0700 |
|---|---|---|
| committer | Trevor Bouchillon <[email protected]> | 2022-10-16 16:28:55 -0700 |
| commit | b3071b1f7131edfc3c8ac1f3532777663a094cbb (patch) | |
| tree | 16582fbd478fcf73f1e80a70702d8b8a6b5a6277 | |
| parent | p1 4 done (diff) | |
| download | cst116-lab1-daboochillin-b3071b1f7131edfc3c8ac1f3532777663a094cbb.tar.xz cst116-lab1-daboochillin-b3071b1f7131edfc3c8ac1f3532777663a094cbb.zip | |
p1 6 complete
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 4e375ca..b20b912 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -17,7 +17,8 @@ int main() float kitewidth; float kitelength; float kiteaream; - float kiteareacm + float kiteareacm; + float kiteaspectratio; cout << "Please enter width of kite (horizontal diagonal) in meters." << endl; @@ -28,5 +29,8 @@ int main() cout << kitelength << " " << kitewidth << endl; kiteaream = (kitewidth * kitelength) / 2; kiteareacm = kiteaream / 10000; + cout << kiteaream << endl; + kiteaspectratio = kitewidth / kitelength; + cout << kiteaspectratio; } |