From 2305c4841e597c9e1472e4d469263d8087237f3e Mon Sep 17 00:00:00 2001 From: WilliamBishopCST116 <114703314+WilliamBishopCST116@users.noreply.github.com> Date: Mon, 17 Oct 2022 11:29:35 -0700 Subject: Add files via upload --- CST116-Lab1-Bishop-Submission7.cpp | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 CST116-Lab1-Bishop-Submission7.cpp diff --git a/CST116-Lab1-Bishop-Submission7.cpp b/CST116-Lab1-Bishop-Submission7.cpp new file mode 100644 index 0000000..00601df --- /dev/null +++ b/CST116-Lab1-Bishop-Submission7.cpp @@ -0,0 +1,44 @@ +//William Bishop +//williambishop@oit.edu + +// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. +// + +#include + +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; + + + + + + + +} + -- cgit v1.2.3