diff --git a/ProgChallenge/Debug/ProgChallenge2.exe b/ProgChallenge/Debug/ProgChallenge2.exe new file mode 100644 index 0000000..a3fa9f4 Binary files /dev/null and b/ProgChallenge/Debug/ProgChallenge2.exe differ diff --git a/ProgChallenge/Debug/ProgChallenge2.ilk b/ProgChallenge/Debug/ProgChallenge2.ilk new file mode 100644 index 0000000..4ad1423 Binary files /dev/null and b/ProgChallenge/Debug/ProgChallenge2.ilk differ diff --git a/ProgChallenge/Debug/ProgChallenge2.pdb b/ProgChallenge/Debug/ProgChallenge2.pdb new file mode 100644 index 0000000..51b79ca Binary files /dev/null and b/ProgChallenge/Debug/ProgChallenge2.pdb differ diff --git a/ProgChallenge/ProgChallenge2.sdf b/ProgChallenge/ProgChallenge2.sdf new file mode 100644 index 0000000..1ee5732 Binary files /dev/null and b/ProgChallenge/ProgChallenge2.sdf differ diff --git a/ProgChallenge/ProgChallenge2.sln b/ProgChallenge/ProgChallenge2.sln new file mode 100644 index 0000000..3841c71 --- /dev/null +++ b/ProgChallenge/ProgChallenge2.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}") = "ProgChallenge2", "ProgChallenge2\ProgChallenge2.vcxproj", "{A173AEBD-3672-4F07-8E50-9A5EFE45B708}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A173AEBD-3672-4F07-8E50-9A5EFE45B708}.Debug|Win32.ActiveCfg = Debug|Win32 + {A173AEBD-3672-4F07-8E50-9A5EFE45B708}.Debug|Win32.Build.0 = Debug|Win32 + {A173AEBD-3672-4F07-8E50-9A5EFE45B708}.Release|Win32.ActiveCfg = Release|Win32 + {A173AEBD-3672-4F07-8E50-9A5EFE45B708}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ProgChallenge/ProgChallenge2.v12.suo b/ProgChallenge/ProgChallenge2.v12.suo new file mode 100644 index 0000000..931c7b4 Binary files /dev/null and b/ProgChallenge/ProgChallenge2.v12.suo differ diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.log b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.log new file mode 100644 index 0000000..81d5d9b --- /dev/null +++ b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.log @@ -0,0 +1,15 @@ +Build started 2/3/2015 5:01:10 AM. +Project "C:\Users\IEUser\Programming_2\ProgChallenge2\ProgChallenge2\ProgChallenge2.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\ProgChallenge2.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ProgChallenge2.cpp + ProgChallenge2.cpp +c:\users\ieuser\programming_2\progchallenge2\progchallenge2\progchallenge2.cpp(42): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Programming_2\ProgChallenge2\Debug\ProgChallenge2.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\Programming_2\ProgChallenge2\Debug\ProgChallenge2.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Programming_2\ProgChallenge2\Debug\ProgChallenge2.lib" /MACHINE:X86 Debug\ProgChallenge2.obj + Debug\stdafx.obj + ProgChallenge2.vcxproj -> C:\Users\IEUser\Programming_2\ProgChallenge2\Debug\ProgChallenge2.exe +Done Building Project "C:\Users\IEUser\Programming_2\ProgChallenge2\ProgChallenge2\ProgChallenge2.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.76 diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.obj b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.obj new file mode 100644 index 0000000..862145f Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.obj differ diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.pch b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.pch new file mode 100644 index 0000000..f37d3f4 Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.pch differ diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.read.1.tlog b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..ade8028 Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.read.1.tlog differ diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.write.1.tlog b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..e500363 Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.write.1.tlog differ diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/ProgChallenge2.lastbuildstate b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/ProgChallenge2.lastbuildstate new file mode 100644 index 0000000..15e2078 --- /dev/null +++ b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/ProgChallenge2.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Programming_2\ProgChallenge2\| diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/cl.command.1.tlog b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/cl.command.1.tlog new file mode 100644 index 0000000..b0bf470 Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/cl.command.1.tlog differ diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.command.1.tlog b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.command.1.tlog new file mode 100644 index 0000000..e13e80c Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.command.1.tlog differ diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.read.1.tlog b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.read.1.tlog new file mode 100644 index 0000000..0e916d8 Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.read.1.tlog differ diff --git a/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.write.1.tlog b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.write.1.tlog new file mode 100644 index 0000000..6404fec Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/ProgChallenge2.tlog/link.write.1.tlog differ diff --git a/ProgChallenge/ProgChallenge2/Debug/stdafx.obj b/ProgChallenge/ProgChallenge2/Debug/stdafx.obj new file mode 100644 index 0000000..b85035f Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/stdafx.obj differ diff --git a/ProgChallenge/ProgChallenge2/Debug/vc120.idb b/ProgChallenge/ProgChallenge2/Debug/vc120.idb new file mode 100644 index 0000000..f33d3a3 Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/vc120.idb differ diff --git a/ProgChallenge/ProgChallenge2/Debug/vc120.pdb b/ProgChallenge/ProgChallenge2/Debug/vc120.pdb new file mode 100644 index 0000000..ff8f5ef Binary files /dev/null and b/ProgChallenge/ProgChallenge2/Debug/vc120.pdb differ diff --git a/ProgChallenge/ProgChallenge2/ProgChallenge2.cpp b/ProgChallenge/ProgChallenge2/ProgChallenge2.cpp new file mode 100644 index 0000000..bcfb56d --- /dev/null +++ b/ProgChallenge/ProgChallenge2/ProgChallenge2.cpp @@ -0,0 +1,58 @@ +//ProgChallenge2.cpp : A program to findbatting averages. +//Author: Thomas Morrissey +//Collerated with Luke Gosnellll, Tyler Gurrea, and Jose Chica. +//Date: 02-03-2015 + + +#include "stdafx.h" +#include +#include +using namespace std; +int CharacterStat(); + +int CharacterStat(){ + string PlayerName = ""; + int PlayerTeam = 0; + int NumberAtBat = 0; + int Singles = 0; + int Double = 0; + int Triple = 0; + int Homeruns = 0; + double BattingAverage = 0.00; + double Slugging = 0.00; + cout << "What is the Players name? "; + cin >> PlayerName; + cout << "What is the player's team? "; + cin >> PlayerTeam; + cout << "How many times has this player been at bat? "; + cin >> NumberAtBat; + cout << "How many singles has this player had? "; + cin >> Singles; + cout << "How many doubles has this player had? "; + cin >> Double; + cout << "How many triples has this player had? "; + cin >> Triple; + cout << "How many Home Runs has this player had? "; + cin >> Homeruns; + BattingAverage = Singles + Double + Triple + Homeruns; + BattingAverage = BattingAverage / NumberAtBat; + Slugging = Singles + (Double * 2) + (Triple * 3) + (Homeruns * 4) / NumberAtBat; + cout << "Player Name Batting Average Slugging percentage" << endl; + cout << PlayerName << " " << BattingAverage << " " << Slugging << "%" << endl; + return BattingAverage; +} +int main() +{ + char Exit = ' '; + int NewPlayer = 0; + while (Exit != 'n'){ + cout << "Do you wish to calulate a player's stats(y/n)?"; + cin >> Exit; + if (Exit == 'y'){ + NewPlayer = CharacterStat(); + } + } + cout << "Goodbye."; + return 0; +} + diff --git a/ProgChallenge/ProgChallenge2/ProgChallenge2.vcxproj b/ProgChallenge/ProgChallenge2/ProgChallenge2.vcxproj new file mode 100644 index 0000000..dc7f65c --- /dev/null +++ b/ProgChallenge/ProgChallenge2/ProgChallenge2.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {A173AEBD-3672-4F07-8E50-9A5EFE45B708} + Win32Proj + ProgChallenge2 + + + + 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/ProgChallenge/ProgChallenge2/ProgChallenge2.vcxproj.filters b/ProgChallenge/ProgChallenge2/ProgChallenge2.vcxproj.filters new file mode 100644 index 0000000..dda66b0 --- /dev/null +++ b/ProgChallenge/ProgChallenge2/ProgChallenge2.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/ProgChallenge/ProgChallenge2/ReadMe.txt b/ProgChallenge/ProgChallenge2/ReadMe.txt new file mode 100644 index 0000000..108dc33 --- /dev/null +++ b/ProgChallenge/ProgChallenge2/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : ProgChallenge2 Project Overview +======================================================================== + +AppWizard has created this ProgChallenge2 application for you. + +This file contains a summary of what you will find in each of the files that +make up your ProgChallenge2 application. + + +ProgChallenge2.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. + +ProgChallenge2.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). + +ProgChallenge2.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 ProgChallenge2.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/ProgChallenge/ProgChallenge2/stdafx.cpp b/ProgChallenge/ProgChallenge2/stdafx.cpp new file mode 100644 index 0000000..9027768 --- /dev/null +++ b/ProgChallenge/ProgChallenge2/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// ProgChallenge2.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/ProgChallenge/ProgChallenge2/stdafx.h b/ProgChallenge/ProgChallenge2/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/ProgChallenge/ProgChallenge2/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/ProgChallenge/ProgChallenge2/targetver.h b/ProgChallenge/ProgChallenge2/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/ProgChallenge/ProgChallenge2/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/ProgChallenge/ipch/progchallenge2-485df339/progchallenge2-c835d59.ipch b/ProgChallenge/ipch/progchallenge2-485df339/progchallenge2-c835d59.ipch new file mode 100644 index 0000000..fa4f5bf Binary files /dev/null and b/ProgChallenge/ipch/progchallenge2-485df339/progchallenge2-c835d59.ipch differ diff --git a/ProgChallenge2/Debug/ProgChallenge2.exe b/ProgChallenge2/Debug/ProgChallenge2.exe new file mode 100644 index 0000000..1658da4 Binary files /dev/null and b/ProgChallenge2/Debug/ProgChallenge2.exe differ diff --git a/ProgChallenge2/Debug/ProgChallenge2.ilk b/ProgChallenge2/Debug/ProgChallenge2.ilk new file mode 100644 index 0000000..9971259 Binary files /dev/null and b/ProgChallenge2/Debug/ProgChallenge2.ilk differ diff --git a/ProgChallenge2/Debug/ProgChallenge2.pdb b/ProgChallenge2/Debug/ProgChallenge2.pdb new file mode 100644 index 0000000..c191441 Binary files /dev/null and b/ProgChallenge2/Debug/ProgChallenge2.pdb differ diff --git a/ProgChallenge2/ProgChallenge2.sdf b/ProgChallenge2/ProgChallenge2.sdf new file mode 100644 index 0000000..8141a47 Binary files /dev/null and b/ProgChallenge2/ProgChallenge2.sdf differ diff --git a/ProgChallenge2/ProgChallenge2.sln b/ProgChallenge2/ProgChallenge2.sln new file mode 100644 index 0000000..7de6900 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2.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}") = "ProgChallenge2", "ProgChallenge2\ProgChallenge2.vcxproj", "{6D472DE5-D237-4710-8C39-8A688B33E720}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6D472DE5-D237-4710-8C39-8A688B33E720}.Debug|Win32.ActiveCfg = Debug|Win32 + {6D472DE5-D237-4710-8C39-8A688B33E720}.Debug|Win32.Build.0 = Debug|Win32 + {6D472DE5-D237-4710-8C39-8A688B33E720}.Release|Win32.ActiveCfg = Release|Win32 + {6D472DE5-D237-4710-8C39-8A688B33E720}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ProgChallenge2/ProgChallenge2.v12.suo b/ProgChallenge2/ProgChallenge2.v12.suo new file mode 100644 index 0000000..e07919a Binary files /dev/null and b/ProgChallenge2/ProgChallenge2.v12.suo differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.log b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.log new file mode 100644 index 0000000..2c792c1 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.log @@ -0,0 +1,15 @@ +Build started 2/3/2015 6:44:29 AM. +Project "C:\Users\IEUser\Programming_2\ProgChallenge2\ProgChallenge2\ProgChallenge2.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\ProgChallenge2.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ProgChallenge2.cpp + ProgChallenge2.cpp +c:\users\ieuser\programming_2\progchallenge2\progchallenge2\progchallenge2.cpp(42): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Programming_2\ProgChallenge2\Debug\ProgChallenge2.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\Programming_2\ProgChallenge2\Debug\ProgChallenge2.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Programming_2\ProgChallenge2\Debug\ProgChallenge2.lib" /MACHINE:X86 Debug\ProgChallenge2.obj + Debug\stdafx.obj + ProgChallenge2.vcxproj -> C:\Users\IEUser\Programming_2\ProgChallenge2\Debug\ProgChallenge2.exe +Done Building Project "C:\Users\IEUser\Programming_2\ProgChallenge2\ProgChallenge2\ProgChallenge2.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.28 diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.obj b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.obj new file mode 100644 index 0000000..672df9d Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.obj differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.pch b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.pch new file mode 100644 index 0000000..cdbd7db Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.pch differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.read.1.tlog b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..ade8028 Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.read.1.tlog differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.write.1.tlog b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..e500363 Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/CL.write.1.tlog differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/ProgChallenge2.lastbuildstate b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/ProgChallenge2.lastbuildstate new file mode 100644 index 0000000..15e2078 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/ProgChallenge2.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Programming_2\ProgChallenge2\| diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/cl.command.1.tlog b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/cl.command.1.tlog new file mode 100644 index 0000000..b0bf470 Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/cl.command.1.tlog differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.command.1.tlog b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.command.1.tlog new file mode 100644 index 0000000..e13e80c Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.command.1.tlog differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.read.1.tlog b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.read.1.tlog new file mode 100644 index 0000000..dda1c71 Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.read.1.tlog differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.write.1.tlog b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.write.1.tlog new file mode 100644 index 0000000..6404fec Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/ProgChallenge2.tlog/link.write.1.tlog differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/stdafx.obj b/ProgChallenge2/ProgChallenge2/Debug/stdafx.obj new file mode 100644 index 0000000..30676ec Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/stdafx.obj differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/vc120.idb b/ProgChallenge2/ProgChallenge2/Debug/vc120.idb new file mode 100644 index 0000000..35c9444 Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/vc120.idb differ diff --git a/ProgChallenge2/ProgChallenge2/Debug/vc120.pdb b/ProgChallenge2/ProgChallenge2/Debug/vc120.pdb new file mode 100644 index 0000000..6e4c25d Binary files /dev/null and b/ProgChallenge2/ProgChallenge2/Debug/vc120.pdb differ diff --git a/ProgChallenge2/ProgChallenge2/ProgChallenge2.cpp b/ProgChallenge2/ProgChallenge2/ProgChallenge2.cpp new file mode 100644 index 0000000..00e1502 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/ProgChallenge2.cpp @@ -0,0 +1,119 @@ +// ProgChallenge2.cpp : Defines the entry point for the console application. +//Author: Thomas Morrissey +//Collerated with Luke Gosnellll, Tyler Gurrea, and Jose Chica. +//Date: 02-03-2015 + + +#include "stdafx.h" +#include +#include +using namespace std; +int PizzaCost(char SecondPizza, string FirstSize, string SecondSize, int FirstTopping, int SecondToppings); + +int PizzaCost(char SecondPizza, string FirstSize, string SecondSize, int FirstTopping, int SecondToppings) +{ + double TotalCost = 0.00; + double SizeTotal = 0.00; + int ToppingsTotal = 0; + double Toppings = 0.00; + if (SecondPizza == 'y'){ + if (SecondSize == "Large"){ + SizeTotal = 15.95; + } + else if (SecondSize == "Medium"){ + SizeTotal = 12.95; + } + else{ + SizeTotal = 10.95; + } + } + if (FirstSize == "Large"){ + SizeTotal = SizeTotal + 15.95; + } + else if (FirstSize == "Medium"){ + SizeTotal = SizeTotal + 12.95; + } + else{ + SizeTotal = SizeTotal + 10.95; + } + ToppingsTotal = FirstTopping + SecondToppings; + Toppings = ToppingsTotal*1.25; + TotalCost = SizeTotal + Toppings; + return TotalCost; +} + +int main() +{ + string CustomerName = " "; + char SecondPizza = ' '; + string FirstSize = " "; + string SecondSize =" "; + char AddToppings = ' '; + char AddToppingSecond = ' '; + int FirstTopping = 0; + int SecondTopping = 0; + string FirstShape = ""; + string SecondShape = ""; + string FirstCrust = ""; + string SecondCrust = ""; + double Total = 0.00; + cout << "Would you like a second pizza? (y/n) "; + cin >> SecondPizza; + if (SecondPizza == 'y'){ + cout << "For your first Pizza:" << endl;} + cout << "Pizza Sizes:\n 1-Large\n 2-Medium:\n 3-Small\nYour Selection:"; + cin >> FirstCrust; + cout << "Would you like toppings?(y/n)"; + cin >> AddToppings; + if (AddToppings == 'y'){ + cout << "How many toppings would you like? "; + cin >> FirstTopping;} + cout << "Pizza Shapes Available:\n -Round\n -Square\nWhat shape would you like for your pizza? "; + cin >> FirstShape; + cout << "Pizza Crusts Available:\n -Thick\n -Thin\nWhat Crust would you like to eat? "; + cin >> FirstCrust; + if (SecondPizza == 'n'){ + Total = PizzaCost(SecondPizza, FirstSize, SecondSize, FirstTopping, SecondTopping); + cout << "Customer Name: " << CustomerName << endl; + cout << "Pizza Order:" << endl; + cout << "Pizza Size: " << FirstSize << endl; + cout << "Topping Cost" << endl; + cout << "Per Topping $ 1.25 " << FirstTopping << endl; + cout << "Pizza Shape: " << FirstShape; + cout << "Pizza Crust: " << FirstCrust; + cout << "Total: " << Total << endl; + } + else{ + cout << "For your second pizza: " << endl; + cout << "Pizza Sizes:\n 1-Large\n 2-Medium:\n 3-Small\nYour Selection:"; + cin >> SecondCrust; + cout << "Would you like toppings?(y/n)"; + cin >> AddToppingSecond; + if (AddToppings == 'y'){ + cout << "How many toppings would you like? "; + cin >> SecondTopping; + } + cout << "Pizza Shapes Available:\n -Round\n -Square\nWhat shape would you like for your pizza? "; + cin >> SecondShape; + cout << "Pizza Crusts Available:\n -Thick\n -Thin\nWhat Crust would you like to eat? "; + cin >> SecondCrust; + Total = PizzaCost(SecondPizza, FirstSize, SecondSize, FirstTopping, SecondTopping); + cout << "Customer Name: " << CustomerName << endl; + cout << "Pizza Order:" << endl; + cout << "Pizza one:" << endl; + cout << "Pizza Size: " << FirstSize << endl; + cout << "Topping Cost" << endl; + cout << "Per Topping $ 1.25 " << FirstTopping << endl; + cout << "Pizza Shape: " << FirstShape << endl; + cout << "Pizza Crust: " << FirstCrust << endl; + cout << "Pizza Two: " << endl; + cout << "Pizza Size: " << SecondSize << endl; + cout << "Topping Cost" << endl; + cout << "Per topping $1.25 " << SecondTopping << endl; + cout << "Pizza Shape: " << SecondShape; + cout << "Pizza Crust: " << SecondCrust; + cout << "Total: " << Total << endl; + } + return 0; +} + diff --git a/ProgChallenge2/ProgChallenge2/ProgChallenge2.vcxproj b/ProgChallenge2/ProgChallenge2/ProgChallenge2.vcxproj new file mode 100644 index 0000000..9261ed2 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/ProgChallenge2.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {6D472DE5-D237-4710-8C39-8A688B33E720} + Win32Proj + ProgChallenge2 + + + + 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/ProgChallenge2/ProgChallenge2/ProgChallenge2.vcxproj.filters b/ProgChallenge2/ProgChallenge2/ProgChallenge2.vcxproj.filters new file mode 100644 index 0000000..dda66b0 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/ProgChallenge2.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/ProgChallenge2/ProgChallenge2/ReadMe.txt b/ProgChallenge2/ProgChallenge2/ReadMe.txt new file mode 100644 index 0000000..108dc33 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : ProgChallenge2 Project Overview +======================================================================== + +AppWizard has created this ProgChallenge2 application for you. + +This file contains a summary of what you will find in each of the files that +make up your ProgChallenge2 application. + + +ProgChallenge2.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. + +ProgChallenge2.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). + +ProgChallenge2.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 ProgChallenge2.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/ProgChallenge2/ProgChallenge2/stdafx.cpp b/ProgChallenge2/ProgChallenge2/stdafx.cpp new file mode 100644 index 0000000..9027768 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// ProgChallenge2.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/ProgChallenge2/ProgChallenge2/stdafx.h b/ProgChallenge2/ProgChallenge2/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/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/ProgChallenge2/ProgChallenge2/targetver.h b/ProgChallenge2/ProgChallenge2/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/ProgChallenge2/ProgChallenge2/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/ProgChallenge2/ipch/progchallenge2-485df339/progchallenge2-c835d59.ipch b/ProgChallenge2/ipch/progchallenge2-485df339/progchallenge2-c835d59.ipch new file mode 100644 index 0000000..05f9089 Binary files /dev/null and b/ProgChallenge2/ipch/progchallenge2-485df339/progchallenge2-c835d59.ipch differ