diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-17 22:54:14 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-17 22:54:14 -0700 |
| commit | e1f9fd1b7b8aae456c3e316bfa2e06cede98d491 (patch) | |
| tree | d40a5a0a7c936220dd0fb667a2253eaa6501eb94 /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | Aspect ratio warning. (diff) | |
| download | cst116-lab1-cyrus-e1f9fd1b7b8aae456c3e316bfa2e06cede98d491.tar.xz cst116-lab1-cyrus-e1f9fd1b7b8aae456c3e316bfa2e06cede98d491.zip | |
Aspect Ratio tested and working
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 03b8567..a9d9a32 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -43,7 +43,7 @@ int main() kiteArea = kiteCalc(kiteWidth, kiteLen); cout << "The area of the kite, in square meters, is: " << kiteArea << endl; - + aspectCalc(kiteWidth, kiteLen); } float kiteCalc(float wid, float len) @@ -65,5 +65,12 @@ float aspectCalc(float wid, float len) { cout << "Your kite has an aspect ratio of: " << aspectRatioCalc << endl; cout << "a lower aspect ratio would provide more stability. \n"; + + return 0; + } + else + { + return 0; } + } |