summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp33
1 files changed, 25 insertions, 8 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index ed5f807..081d006 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -1,16 +1,33 @@
-// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
-//
-
#include <iostream>
-
-using namespace std;
-
+#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
int main()
{
- cout << "Hello World!\n";
-}
+ float Width;
+ float Length;
+ float Area;
+ float Area2;
+ float aspectr;
+ //float celcius2 = 0;
+
+ cout << "What is the Width of your kite in centimeters? ";
+ cin >> Width;
+
+ cout << "What is the Length of your kite in centimeters? ";
+ cin >> Length;
+
+ Area = (Width * Length) / 2;
+ Area2 = Area / 10000;
+
+ aspectr = Width / Length;
+
+
+ cout << "Area in Meters = " << Area2 << endl;
+
+ cout << "Aspect Ratio = " << aspectr;
+ return 0;
+} \ No newline at end of file