diff --git a/Thumbs.db b/Thumbs.db deleted file mode 100644 index 93d302b..0000000 Binary files a/Thumbs.db and /dev/null differ diff --git a/program1/Debug/program1.exe b/program1/Debug/program1.exe new file mode 100644 index 0000000..3d4ac2a Binary files /dev/null and b/program1/Debug/program1.exe differ diff --git a/program1/Debug/program1.ilk b/program1/Debug/program1.ilk new file mode 100644 index 0000000..28a5a6c Binary files /dev/null and b/program1/Debug/program1.ilk differ diff --git a/program1/Debug/program1.pdb b/program1/Debug/program1.pdb new file mode 100644 index 0000000..655f9e2 Binary files /dev/null and b/program1/Debug/program1.pdb differ diff --git a/program1/ipch/program1-641a84a7/program1-67f5aa75.ipch b/program1/ipch/program1-641a84a7/program1-67f5aa75.ipch new file mode 100644 index 0000000..c99ac87 Binary files /dev/null and b/program1/ipch/program1-641a84a7/program1-67f5aa75.ipch differ diff --git a/program1/program1.sdf b/program1/program1.sdf new file mode 100644 index 0000000..86457fc Binary files /dev/null and b/program1/program1.sdf differ diff --git a/program1/program1.sln b/program1/program1.sln new file mode 100644 index 0000000..5a83ab5 --- /dev/null +++ b/program1/program1.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "program1", "program1\program1.vcxproj", "{4357C0F9-409D-41D3-84A6-0B4A1A554251}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4357C0F9-409D-41D3-84A6-0B4A1A554251}.Debug|Win32.ActiveCfg = Debug|Win32 + {4357C0F9-409D-41D3-84A6-0B4A1A554251}.Debug|Win32.Build.0 = Debug|Win32 + {4357C0F9-409D-41D3-84A6-0B4A1A554251}.Release|Win32.ActiveCfg = Release|Win32 + {4357C0F9-409D-41D3-84A6-0B4A1A554251}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/program1/program1.v12.suo b/program1/program1.v12.suo new file mode 100644 index 0000000..920eeea Binary files /dev/null and b/program1/program1.v12.suo differ diff --git a/program1/program1/Debug/program1.log b/program1/program1/Debug/program1.log new file mode 100644 index 0000000..37bb0f5 --- /dev/null +++ b/program1/program1/Debug/program1.log @@ -0,0 +1,14 @@ +Build started 2/3/2015 7:48:14 AM. +Project "C:\Users\IEUser\Dropbox\tech\Programming_2\program1\program1\program1.vcxproj" on node 2 (Build target(s)). +ClCompile: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\program1.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt program1.cpp + program1.cpp +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Dropbox\tech\Programming_2\program1\Debug\program1.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\IEUser\Dropbox\tech\Programming_2\program1\Debug\program1.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Dropbox\tech\Programming_2\program1\Debug\program1.lib" /MACHINE:X86 Debug\program1.obj + Debug\stdafx.obj + program1.vcxproj -> C:\Users\IEUser\Dropbox\tech\Programming_2\program1\Debug\program1.exe +Done Building Project "C:\Users\IEUser\Dropbox\tech\Programming_2\program1\program1\program1.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.30 diff --git a/program1/program1/Debug/program1.obj b/program1/program1/Debug/program1.obj new file mode 100644 index 0000000..2cfc714 Binary files /dev/null and b/program1/program1/Debug/program1.obj differ diff --git a/program1/program1/Debug/program1.pch b/program1/program1/Debug/program1.pch new file mode 100644 index 0000000..728151d Binary files /dev/null and b/program1/program1/Debug/program1.pch differ diff --git a/program1/program1/Debug/program1.tlog/CL.read.1.tlog b/program1/program1/Debug/program1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2f9609a Binary files /dev/null and b/program1/program1/Debug/program1.tlog/CL.read.1.tlog differ diff --git a/program1/program1/Debug/program1.tlog/CL.write.1.tlog b/program1/program1/Debug/program1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..43b80f8 Binary files /dev/null and b/program1/program1/Debug/program1.tlog/CL.write.1.tlog differ diff --git a/program1/program1/Debug/program1.tlog/cl.command.1.tlog b/program1/program1/Debug/program1.tlog/cl.command.1.tlog new file mode 100644 index 0000000..ab46c23 Binary files /dev/null and b/program1/program1/Debug/program1.tlog/cl.command.1.tlog differ diff --git a/program1/program1/Debug/program1.tlog/link.command.1.tlog b/program1/program1/Debug/program1.tlog/link.command.1.tlog new file mode 100644 index 0000000..dfd4532 Binary files /dev/null and b/program1/program1/Debug/program1.tlog/link.command.1.tlog differ diff --git a/program1/program1/Debug/program1.tlog/link.read.1.tlog b/program1/program1/Debug/program1.tlog/link.read.1.tlog new file mode 100644 index 0000000..37cf661 Binary files /dev/null and b/program1/program1/Debug/program1.tlog/link.read.1.tlog differ diff --git a/program1/program1/Debug/program1.tlog/link.write.1.tlog b/program1/program1/Debug/program1.tlog/link.write.1.tlog new file mode 100644 index 0000000..c690708 Binary files /dev/null and b/program1/program1/Debug/program1.tlog/link.write.1.tlog differ diff --git a/program1/program1/Debug/program1.tlog/program1.lastbuildstate b/program1/program1/Debug/program1.tlog/program1.lastbuildstate new file mode 100644 index 0000000..3a59eab --- /dev/null +++ b/program1/program1/Debug/program1.tlog/program1.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Dropbox\tech\Programming_2\program1\| diff --git a/program1/program1/Debug/stdafx.obj b/program1/program1/Debug/stdafx.obj new file mode 100644 index 0000000..94606eb Binary files /dev/null and b/program1/program1/Debug/stdafx.obj differ diff --git a/program1/program1/Debug/vc120.idb b/program1/program1/Debug/vc120.idb new file mode 100644 index 0000000..0be48f5 Binary files /dev/null and b/program1/program1/Debug/vc120.idb differ diff --git a/program1/program1/Debug/vc120.pdb b/program1/program1/Debug/vc120.pdb new file mode 100644 index 0000000..eb7a9bd Binary files /dev/null and b/program1/program1/Debug/vc120.pdb differ diff --git a/program1/program1/ReadMe.txt b/program1/program1/ReadMe.txt new file mode 100644 index 0000000..2b68d37 --- /dev/null +++ b/program1/program1/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : program1 Project Overview +======================================================================== + +AppWizard has created this program1 application for you. + +This file contains a summary of what you will find in each of the files that +make up your program1 application. + + +program1.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +program1.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +program1.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named program1.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/program1/program1/program1.cpp b/program1/program1/program1.cpp new file mode 100644 index 0000000..cb66709 --- /dev/null +++ b/program1/program1/program1.cpp @@ -0,0 +1,87 @@ +// program1.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include + +using namespace std; + +int main() +{ + string players[5]; + double batting[5]; + double slugging[5]; + for (int i = 0; i < 5; i++) + { + players[i] = ""; + batting[i] = 0.0; + slugging[i] = 0.0; + } + string response = ""; + while (response != "Exit") + { + cout << "Do you want to Add, Clear, or Exit? "; + cin >> response; + cin.sync(); + if (response == "Add") + { + string name; + int code = 1; + double atBat = 0; + double singles = 0; + double doubles = 0; + double triples = 0; + double homeRuns = 0; + + cout << "Player name: "; + getline(cin, name); + cout << "Player team code (1,2,3,4,5): "; + cin >> code; + cout << "Times at bat: "; + cin >> atBat; + cout << "Singles: "; + cin >> singles; + cout << "Doubles: "; + cin >> doubles; + cout << "Triples: "; + cin >> triples; + cout << "Home runs: "; + cin >> homeRuns; + + double hits = singles + doubles + triples + homeRuns; + double batAvg = hits / atBat; + double slugPerc = hits / 4 / atBat; + players[code] = name; + batting[code] = batAvg; + slugging[code] = slugPerc; + + cout << name << " has a " << batAvg << " batting average." << endl + << "And a " << slugPerc << " slugging percentage." << endl; + } + else if (response == "Clear") + { + for (int i = 0; i < 5; i++) + { + players[i] = ""; + batting[i] = 0.0; + slugging[i] = 0.0; + } + cout << "All players removed." << endl; + } + } + double largest = 0.0; + int largeIndex = 0; + for (int i = 0; i < 5; i++) + { + if (batting[i] > largest) + { + largest = batting[i]; + largeIndex = i; + } + } + cout << "Best Player: " << players[largeIndex] << endl + << "Batting average: " << batting[largeIndex] << endl + << "Slugging percentage: " << batting[largeIndex] << endl; + getchar(); +} diff --git a/program1/program1/program1.vcxproj b/program1/program1/program1.vcxproj new file mode 100644 index 0000000..b4aa0ba --- /dev/null +++ b/program1/program1/program1.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {4357C0F9-409D-41D3-84A6-0B4A1A554251} + Win32Proj + program1 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + Create + Create + + + + + + \ No newline at end of file diff --git a/program1/program1/program1.vcxproj.filters b/program1/program1/program1.vcxproj.filters new file mode 100644 index 0000000..f5db9e4 --- /dev/null +++ b/program1/program1/program1.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/program1/program1/stdafx.cpp b/program1/program1/stdafx.cpp new file mode 100644 index 0000000..efc26a3 --- /dev/null +++ b/program1/program1/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// program1.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/program1/program1/stdafx.h b/program1/program1/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/program1/program1/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/program1/program1/targetver.h b/program1/program1/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/program1/program1/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include diff --git a/program2_2/Debug/program2_2.exe b/program2_2/Debug/program2_2.exe new file mode 100644 index 0000000..08a4572 Binary files /dev/null and b/program2_2/Debug/program2_2.exe differ diff --git a/program2_2/Debug/program2_2.ilk b/program2_2/Debug/program2_2.ilk new file mode 100644 index 0000000..3675074 Binary files /dev/null and b/program2_2/Debug/program2_2.ilk differ diff --git a/program2_2/Debug/program2_2.pdb b/program2_2/Debug/program2_2.pdb new file mode 100644 index 0000000..db5734c Binary files /dev/null and b/program2_2/Debug/program2_2.pdb differ diff --git a/program2_2/ipch/program2_2-485280fd/program2_2-f6d24f27.ipch b/program2_2/ipch/program2_2-485280fd/program2_2-f6d24f27.ipch new file mode 100644 index 0000000..95ccd41 Binary files /dev/null and b/program2_2/ipch/program2_2-485280fd/program2_2-f6d24f27.ipch differ diff --git a/program2_2/ipch/program2_2-4cc79326/program2_2-f6d24f27.ipch b/program2_2/ipch/program2_2-4cc79326/program2_2-f6d24f27.ipch new file mode 100644 index 0000000..a02defb Binary files /dev/null and b/program2_2/ipch/program2_2-4cc79326/program2_2-f6d24f27.ipch differ diff --git a/program2_2/program2_2.sdf b/program2_2/program2_2.sdf new file mode 100644 index 0000000..999db0d Binary files /dev/null and b/program2_2/program2_2.sdf differ diff --git a/program2_2/program2_2.sln b/program2_2/program2_2.sln new file mode 100644 index 0000000..c30f8dc --- /dev/null +++ b/program2_2/program2_2.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "program2_2", "program2_2\program2_2.vcxproj", "{6A00E729-220F-4106-A97E-C26F10033C39}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6A00E729-220F-4106-A97E-C26F10033C39}.Debug|Win32.ActiveCfg = Debug|Win32 + {6A00E729-220F-4106-A97E-C26F10033C39}.Debug|Win32.Build.0 = Debug|Win32 + {6A00E729-220F-4106-A97E-C26F10033C39}.Release|Win32.ActiveCfg = Release|Win32 + {6A00E729-220F-4106-A97E-C26F10033C39}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/program2_2/program2_2.v12.suo b/program2_2/program2_2.v12.suo new file mode 100644 index 0000000..ca977da Binary files /dev/null and b/program2_2/program2_2.v12.suo differ diff --git a/program2_2/program2_2/Debug/program2_2.log b/program2_2/program2_2/Debug/program2_2.log new file mode 100644 index 0000000..6f763d4 --- /dev/null +++ b/program2_2/program2_2/Debug/program2_2.log @@ -0,0 +1,14 @@ +Build started 2/3/2015 10:47:20 AM. + 1>Project "C:\Users\thudr_000\Dropbox\tech\Programming_2\program2_2\program2_2\program2_2.vcxproj" on node 2 (Build target(s)). + 1>ClCompile: + C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\program2_2.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt program2_2.cpp + program2_2.cpp + Link: + C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\thudr_000\Dropbox\tech\Programming_2\program2_2\Debug\program2_2.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\thudr_000\Dropbox\tech\Programming_2\program2_2\Debug\program2_2.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\thudr_000\Dropbox\tech\Programming_2\program2_2\Debug\program2_2.lib" /MACHINE:X86 Debug\program2_2.obj + Debug\stdafx.obj + program2_2.vcxproj -> C:\Users\thudr_000\Dropbox\tech\Programming_2\program2_2\Debug\program2_2.exe + 1>Done Building Project "C:\Users\thudr_000\Dropbox\tech\Programming_2\program2_2\program2_2\program2_2.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.05 diff --git a/program2_2/program2_2/Debug/program2_2.obj b/program2_2/program2_2/Debug/program2_2.obj new file mode 100644 index 0000000..3e78818 Binary files /dev/null and b/program2_2/program2_2/Debug/program2_2.obj differ diff --git a/program2_2/program2_2/Debug/program2_2.pch b/program2_2/program2_2/Debug/program2_2.pch new file mode 100644 index 0000000..df75342 Binary files /dev/null and b/program2_2/program2_2/Debug/program2_2.pch differ diff --git a/program2_2/program2_2/Debug/program2_2.tlog/CL.read.1.tlog b/program2_2/program2_2/Debug/program2_2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8795e96 Binary files /dev/null and b/program2_2/program2_2/Debug/program2_2.tlog/CL.read.1.tlog differ diff --git a/program2_2/program2_2/Debug/program2_2.tlog/CL.write.1.tlog b/program2_2/program2_2/Debug/program2_2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..f043e2d Binary files /dev/null and b/program2_2/program2_2/Debug/program2_2.tlog/CL.write.1.tlog differ diff --git a/program2_2/program2_2/Debug/program2_2.tlog/cl.command.1.tlog b/program2_2/program2_2/Debug/program2_2.tlog/cl.command.1.tlog new file mode 100644 index 0000000..d869205 Binary files /dev/null and b/program2_2/program2_2/Debug/program2_2.tlog/cl.command.1.tlog differ diff --git a/program2_2/program2_2/Debug/program2_2.tlog/link.command.1.tlog b/program2_2/program2_2/Debug/program2_2.tlog/link.command.1.tlog new file mode 100644 index 0000000..262d08a Binary files /dev/null and b/program2_2/program2_2/Debug/program2_2.tlog/link.command.1.tlog differ diff --git a/program2_2/program2_2/Debug/program2_2.tlog/link.read.1.tlog b/program2_2/program2_2/Debug/program2_2.tlog/link.read.1.tlog new file mode 100644 index 0000000..defb11d Binary files /dev/null and b/program2_2/program2_2/Debug/program2_2.tlog/link.read.1.tlog differ diff --git a/program2_2/program2_2/Debug/program2_2.tlog/link.write.1.tlog b/program2_2/program2_2/Debug/program2_2.tlog/link.write.1.tlog new file mode 100644 index 0000000..6efad2a Binary files /dev/null and b/program2_2/program2_2/Debug/program2_2.tlog/link.write.1.tlog differ diff --git a/program2_2/program2_2/Debug/program2_2.tlog/program2_2.lastbuildstate b/program2_2/program2_2/Debug/program2_2.tlog/program2_2.lastbuildstate new file mode 100644 index 0000000..296f256 --- /dev/null +++ b/program2_2/program2_2/Debug/program2_2.tlog/program2_2.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\thudr_000\Dropbox\tech\Programming_2\program2_2\| diff --git a/program2_2/program2_2/Debug/stdafx.obj b/program2_2/program2_2/Debug/stdafx.obj new file mode 100644 index 0000000..fc7b332 Binary files /dev/null and b/program2_2/program2_2/Debug/stdafx.obj differ diff --git a/program2_2/program2_2/Debug/vc120.idb b/program2_2/program2_2/Debug/vc120.idb new file mode 100644 index 0000000..f2eafcc Binary files /dev/null and b/program2_2/program2_2/Debug/vc120.idb differ diff --git a/program2_2/program2_2/Debug/vc120.pdb b/program2_2/program2_2/Debug/vc120.pdb new file mode 100644 index 0000000..cf488ee Binary files /dev/null and b/program2_2/program2_2/Debug/vc120.pdb differ diff --git a/program2_2/program2_2/ReadMe.txt b/program2_2/program2_2/ReadMe.txt new file mode 100644 index 0000000..d3aca43 --- /dev/null +++ b/program2_2/program2_2/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : program2_2 Project Overview +======================================================================== + +AppWizard has created this program2_2 application for you. + +This file contains a summary of what you will find in each of the files that +make up your program2_2 application. + + +program2_2.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +program2_2.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +program2_2.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named program2_2.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/program2_2/program2_2/program2_2.cpp b/program2_2/program2_2/program2_2.cpp new file mode 100644 index 0000000..c5ead40 --- /dev/null +++ b/program2_2/program2_2/program2_2.cpp @@ -0,0 +1,56 @@ +// program2_2.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +using namespace std; + +int main() +{ + double total = 0.0; + double order = 0.0; + string size = ""; + int topNum = 0; + string shape = ""; + string crust = ""; + string res = ""; + while (res != "Checkout") + { + cout << "What do you want to do (Order, Clear, or Checkout): "; + cin >> res; + if (res == "Order") + { + order = 0.0; + cout << "Do you want a Large, Medium, or Small: "; + cin >> size; + cout << "How many toppings: "; + cin >> topNum; + cout << "What shape (Round, Square): "; + cin >> shape; + cout << "What type of crust (Thick, Thin): "; + cin >> crust; + if (size == "Large") + { + order += 15.95; + } + else if (size == "Medium") + { + order += 12.95; + } + else if (size == "Small") + { + order += 10.95; + } + order += topNum * 1.25; + total += order; + + } + if (res == "Clear") + { + total = 0.0; + } + } + cout << "Total: " << total; + getchar(); +} diff --git a/program2_2/program2_2/program2_2.vcxproj b/program2_2/program2_2/program2_2.vcxproj new file mode 100644 index 0000000..d5c8e1d --- /dev/null +++ b/program2_2/program2_2/program2_2.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {6A00E729-220F-4106-A97E-C26F10033C39} + Win32Proj + program2_2 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + Create + Create + + + + + + \ No newline at end of file diff --git a/program2_2/program2_2/program2_2.vcxproj.filters b/program2_2/program2_2/program2_2.vcxproj.filters new file mode 100644 index 0000000..5cf59fc --- /dev/null +++ b/program2_2/program2_2/program2_2.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/program2_2/program2_2/stdafx.cpp b/program2_2/program2_2/stdafx.cpp new file mode 100644 index 0000000..fc944f7 --- /dev/null +++ b/program2_2/program2_2/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// program2_2.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/program2_2/program2_2/stdafx.h b/program2_2/program2_2/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/program2_2/program2_2/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/program2_2/program2_2/targetver.h b/program2_2/program2_2/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/program2_2/program2_2/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include