summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliamBishopCST116 <[email protected]>2022-10-17 11:25:45 -0700
committerGitHub <[email protected]>2022-10-17 11:25:45 -0700
commit0fbbc8c2bc5e4fcdbbd07d666c0f5a94c12c35a4 (patch)
tree3c46a180943b5d8dcd414f7d17a749b3de506145
parentAdd files via upload (diff)
downloadcst116-lab1-williambishopcst116-0fbbc8c2bc5e4fcdbbd07d666c0f5a94c12c35a4.tar.xz
cst116-lab1-williambishopcst116-0fbbc8c2bc5e4fcdbbd07d666c0f5a94c12c35a4.zip
Add files via upload
-rw-r--r--CST116-Lab1-Bishop-Submission5.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/CST116-Lab1-Bishop-Submission5.cpp b/CST116-Lab1-Bishop-Submission5.cpp
new file mode 100644
index 0000000..93a25a7
--- /dev/null
+++ b/CST116-Lab1-Bishop-Submission5.cpp
@@ -0,0 +1,38 @@
+//William Bishop
+
+// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
+//
+
+#include <iostream>
+
+using namespace std;
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+int main()
+{
+ int kite;
+ int horizontal_kitew;
+ int vertical_kitel;
+
+ cout << "Please enter a width of the kite" << endl;
+ cin >> horizontal_kitew
+ cout << "Your width is: " << horizontal_kitew << endl;
+ cout << "Please enter your height of the kite " << endl;
+ cin >> vertical_kitel;
+ cout << "Our width and the height is: " << horizontal_kitew << "and " << vertical_kitel << endl;
+
+ int areaofkite;
+ int areaofkite = (horizontal_kitew * vertical_kitel) / 2;
+ cout << "The area of the kite is " << areaofkite;
+ int Area_of_kiteM;
+ int Area_of_kiteM = areaofkite / 10000;
+ cout << " " << Area_of_kiteM << endl;
+
+
+
+}
+