diff options
| author | TheOtherTonyStark <[email protected]> | 2022-10-16 16:11:04 -0700 |
|---|---|---|
| committer | TheOtherTonyStark <[email protected]> | 2022-10-16 16:11:04 -0700 |
| commit | d4ac33a20c65c7a04c38334a94dcc033a31509e9 (patch) | |
| tree | b3fa5da6e4fcc5f4615bbbd8ba3ddee7a4b49e0c | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-lab1-theothertonystark-d4ac33a20c65c7a04c38334a94dcc033a31509e9.tar.xz cst116-lab1-theothertonystark-d4ac33a20c65c7a04c38334a94dcc033a31509e9.zip | |
First Commit
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 16 | ||||
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.vcxproj | 11 | ||||
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.vcxproj.filters | 2 | ||||
| -rw-r--r-- | BlankConsoleLab/CST116-Lab1-Chambers.cpp | 32 |
4 files changed, 39 insertions, 22 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp deleted file mode 100644 index ed5f807..0000000 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// 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() -{ - cout << "Hello World!\n"; -} - diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj b/BlankConsoleLab/BlankConsoleLab.vcxproj index db2e734..dd4d978 100644 --- a/BlankConsoleLab/BlankConsoleLab.vcxproj +++ b/BlankConsoleLab/BlankConsoleLab.vcxproj @@ -24,31 +24,32 @@ <ProjectGuid>{3cecade6-3e15-4852-bd24-65bfe5d3a3aa}</ProjectGuid> <RootNamespace>BlankConsoleLab</RootNamespace> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> + <ProjectName>CST116-Lab1-Chambers</ProjectName> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <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> @@ -139,7 +140,7 @@ </Link> </ItemDefinitionGroup> <ItemGroup> - <ClCompile Include="BlankConsoleLab.cpp" /> + <ClCompile Include="CST116-Lab1-Chambers.cpp" /> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj.filters b/BlankConsoleLab/BlankConsoleLab.vcxproj.filters index aca1dd9..0de1d4e 100644 --- a/BlankConsoleLab/BlankConsoleLab.vcxproj.filters +++ b/BlankConsoleLab/BlankConsoleLab.vcxproj.filters @@ -15,7 +15,7 @@ </Filter> </ItemGroup> <ItemGroup> - <ClCompile Include="BlankConsoleLab.cpp"> + <ClCompile Include="CST116-Lab1-Chambers.cpp"> <Filter>Source Files</Filter> </ClCompile> </ItemGroup> diff --git a/BlankConsoleLab/CST116-Lab1-Chambers.cpp b/BlankConsoleLab/CST116-Lab1-Chambers.cpp new file mode 100644 index 0000000..2453f32 --- /dev/null +++ b/BlankConsoleLab/CST116-Lab1-Chambers.cpp @@ -0,0 +1,32 @@ +// 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; + +//Ask the user for the width and length in centimeters. +//Print what the user entered for the width and length. +//Compute the area of the kite.Area = (width � length) / 2 +//Convert the square centimeters to square meters by dividing by 10000. +//Print area in square meters.Note: square meters will use decimals. +//Compute the aspect ratio of the kite.The aspect ratio is width / length +//If the aspect ratio is greater than or equal to 1, print a warning message that a lower aspect ratio would provide more stability. + +int width; +int length; + +int main() +{ + cout << "Insert Kite width" ; + cin >> width; + + cout << "Insert Kite length" ; + cin >> length; + +} + |