diff options
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 46 | ||||
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.vcxproj | 8 |
2 files changed, 49 insertions, 5 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..e83e6f9 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -11,6 +11,50 @@ using std::endl; int main() { - cout << "Hello World!\n"; + //Variables used in the programming. + float width; + float length; + float Area; + float aspectR; + + //Welcome Message + cout << "Hello welcome to the Kite App" << endl << endl; + + //Enter Width and Length in centimeters + cout << "Please enter your kite's width in CM "<< endl; + cin >> width; + cout << "Please Enter your kite's length in CM " <<endl; + cin >> length; + + + //Output the measures entered by user + cout << "Your kite Measurements is "; + cout << width; + cout << " By "; + cout <<length << endl; + + //Area is calculated and converted to square meters. + + //Area calculation + Area = (width * length) / 2; + + //Conversion calculation to square meters. + Area = Area / 10000; + + //Output of the area calculation to square meters. + cout << "The area of the kite in squre meter is "; + cout << Area; + cout << " Square Meters" <<endl; + + aspectR = width / length; + + cout << "The aspect ratio of your kite is "; + cout << aspectR << endl; + if (aspectR >= 1) + { + cout << "Keep in mind, a lower aspect ratio would provide more stability"; + } + + } 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> |