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 +++++++++++++++++++++++++-------- BlankConsoleLab/BlankConsoleLab.vcxproj | 8 ++++---- 2 files changed, 29 insertions(+), 12 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 - -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 diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj b/BlankConsoleLab/BlankConsoleLab.vcxproj index db2e734..d2e3ee2 100644 --- a/BlankConsoleLab/BlankConsoleLab.vcxproj +++ b/BlankConsoleLab/BlankConsoleLab.vcxproj @@ -29,26 +29,26 @@ Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode -- cgit v1.2.3