How cpe200-160/calculatorlab works
Project type and purpose
• This is a C#/.NET Windows Forms desktop application (a calculator) accompanied by two unit-test projects. The main goal is to provide a GUI calculator with both standard and RPN (reverse Polish notation) engines, and to validate the business logic via automated tests.
File structure
• Top level:
• CPE200Lab1.sln – the Visual Studio solution
• CPE200Lab1 (project) – the Windows Forms application
• CPE200Lab1Test & CPE200Lab1Tests – two separate test projects targeting the core RPN logic
• README.md – lab version history
• In CPE200Lab1:
• Program.cs – application entry point (boots the MainForm)
• MainForm.* & ExtendForm.* – presentation layer (UI)
• CalculatorEngine.cs & RPNCalculatorEngine.cs – domain/business logic layer
• App.config, Properties folder – configuration and resources
• Test projects reference RPNCalculatorEngine directly and contain test fixtures (RPNCalculatorEngineTest.cs / RPNCalculatorEngineTests.cs).
README for additional insights
• Lab1 added a unary operator to the existing calculator, building on previous labs.
• Focus is on extending domain logic and ensuring correctness via unit tests.