From 9f98e2dc7c8257c986b98a2ffcb1b55ac25f8638 Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Tue, 18 Oct 2022 20:27:23 -0700 Subject: Completed Step 4, added program notes and changed area and meters vars to float to accommodate the decimal valuse --- BlankConsoleLab/BlankConsoleLab.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 505dbf4..42d6d35 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -13,7 +13,8 @@ int main() { int height; int width; - int area; + float area; + float meters; cout << "Enter height of kite in cm: "; @@ -26,8 +27,13 @@ int main() cout << "Height = " << height << " cm" << endl; cout << "Width = " << width << " cm" << endl; - + + +// area calculation area = (height * width) / 2; +// unit conversion + meters = area / 10000; + } -- cgit v1.2.3