summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan <[email protected]>2022-10-19 02:27:12 -0700
committerEvan <[email protected]>2022-10-19 02:27:12 -0700
commit88ffc5fb54950e02eae00fc92168b52cd60b7a40 (patch)
tree73b3907803b30fb929fa20b6f4be6711ed32cb25
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-lab1-evanmihm-88ffc5fb54950e02eae00fc92168b52cd60b7a40.tar.xz
cst116-lab1-evanmihm-88ffc5fb54950e02eae00fc92168b52cd60b7a40.zip
1
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp33
-rw-r--r--BlankConsoleLab/BlankConsoleLab.vcxproj8
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 <iostream>
-
-using namespace std;
-
+#include <iomanip>
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 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>