summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/CST116-Lab1-Fine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/CST116-Lab1-Fine.cpp')
-rw-r--r--BlankConsoleLab/CST116-Lab1-Fine.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/BlankConsoleLab/CST116-Lab1-Fine.cpp b/BlankConsoleLab/CST116-Lab1-Fine.cpp
index f33866b..b37b273 100644
--- a/BlankConsoleLab/CST116-Lab1-Fine.cpp
+++ b/BlankConsoleLab/CST116-Lab1-Fine.cpp
@@ -13,10 +13,11 @@ using std::endl;
int main()
{
- int length;
- int width;
+ float length;
+ float width;
int correct = 0;
float area;
+ float aspectRatio;
while (correct == 0) {
cout << "How long is your kite in centimeters? ";
cin >> length;
@@ -30,6 +31,7 @@ int main()
area = (length * width) / 2.0;
area = area / 10000;
cout << "Your Kite's area is " << area << "meters squared.";
+ aspectRatio = (width / length);