diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed7af6e..03b8567 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -25,6 +25,7 @@ using std::cin; using std::endl; float kiteCalc(float wid, float len); +float aspectCalc(float wid, float len); int main() { @@ -55,3 +56,14 @@ float kiteCalc(float wid, float len) return kiteAreaCalc; } + +float aspectCalc(float wid, float len) +{ + float aspectRatioCalc = (wid / len); + + if (aspectRatioCalc >= 1) + { + cout << "Your kite has an aspect ratio of: " << aspectRatioCalc << endl; + cout << "a lower aspect ratio would provide more stability. \n"; + } +} |