summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliamBishopCST116 <[email protected]>2022-10-17 12:06:23 -0700
committerGitHub <[email protected]>2022-10-17 12:06:23 -0700
commit9ee8b6337994ea3fb790d0e656c218a24af5bc7b (patch)
tree15c13074a99808cb32bf8cb5c3ccb3f433a1fa25
parentAdd files via upload (diff)
downloadcst116-lab1-williambishopcst116-9ee8b6337994ea3fb790d0e656c218a24af5bc7b.tar.xz
cst116-lab1-williambishopcst116-9ee8b6337994ea3fb790d0e656c218a24af5bc7b.zip
Add files via upload
-rw-r--r--CST116-Lab1-Bishop-Submission8.cpp65
1 files changed, 65 insertions, 0 deletions
diff --git a/CST116-Lab1-Bishop-Submission8.cpp b/CST116-Lab1-Bishop-Submission8.cpp
new file mode 100644
index 0000000..d9956df
--- /dev/null
+++ b/CST116-Lab1-Bishop-Submission8.cpp
@@ -0,0 +1,65 @@
+//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;
+ float Area_of_kiteM;
+ float Area_of_kiteM = areaofkite / 10000;
+ cout << " " << Area_of_kiteM << endl;
+ float aspectratio;
+ float aspectratio = horizontal_kitew / vertical_kitel;
+ cout << " Our aspect ratio is : " << aspectratio << endl;
+
+ if (aspectratio >= 1)
+ cout << " WARNING : A lower aspect ratio than 1 would make more stability. " << endl;
+ //Part two
+
+ int width2;
+ int length2;
+
+ cout << "Please enter the width of the kite: ";
+ cin >> width2;
+ cout << "Thank you for entering: " << width2 << endl;
+ cout << "Please enter the length of the kite: ";
+ cin >> length2;
+ cout << "Thank you for entering our width and length : " << width2", " << length2 << endl;
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
+