This is a basic console calculator program written in C#. It allows users to perform basic arithmetic operations, view their recent calculation history, and run a set of automated tests.
- Supports addition, subtraction, multiplication, division, exponentiation, and square root calculations with both integers and decimals
- Handles invalid inputs such as non-numeric characters, division by zero, and taking the square root of a negative number
- Stores and displays the last 10 calculations performed
- Contains a set of unit tests to verify calculator functionality
To run this application, you will need the .NET SDK installed on your machine.
- Clone the repository or download the source code.
- Open a terminal or command prompt and navigate to the project directory.
- Run the following command to execute the application:
dotnet run
The application will start, and you will be presented with a menu of operations to choose from.
The project includes a set of unit tests to ensure the calculator is working correctly. To run these tests:
- Start the application using the
dotnet runcommand. - From the main menu, select option
8to run the tests.
The test results will be displayed in the console, indicating at the end the number of tests that passed and failed.









