From e1f9fd1b7b8aae456c3e316bfa2e06cede98d491 Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Mon, 17 Oct 2022 22:54:14 -0700 Subject: Aspect Ratio tested and working --- BlankConsoleLab/BlankConsoleLab.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') 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; } + } -- cgit v1.2.3