summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
authorEvan <[email protected]>2022-10-19 02:27:12 -0700
committerEvan <[email protected]>2022-10-19 02:27:12 -0700
commit88ffc5fb54950e02eae00fc92168b52cd60b7a40 (patch)
tree73b3907803b30fb929fa20b6f4be6711ed32cb25 /BlankConsoleLab/BlankConsoleLab.cpp
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-lab1-evanmihm-88ffc5fb54950e02eae00fc92168b52cd60b7a40.tar.xz
cst116-lab1-evanmihm-88ffc5fb54950e02eae00fc92168b52cd60b7a40.zip
1
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