From 88ffc5fb54950e02eae00fc92168b52cd60b7a40 Mon Sep 17 00:00:00 2001 From: Evan Date: Wed, 19 Oct 2022 02:27:12 -0700 Subject: 1 --- BlankConsoleLab/BlankConsoleLab.cpp | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') 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 - -using namespace std; - +#include 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 -- cgit v1.2.3