This project is an implementation of a simple calculator in Java that performs basic arithmetic operations and includes a memory function. The project was created as an academic exercise and serves as an example of using unit tests and exception handling.
- Basic Operations: The calculator supports addition, subtraction, multiplication, and division.
- Error Handling: The division function is secured against division by zero.
- Memory: The calculator allows for storing the result in memory and using it in subsequent calculations.
The project includes comprehensive JUnit unit tests for all implemented operations. They were prepared to test for correctness, including edge cases, such as division by zero.
- Make sure you have the Java Development Kit (JDK) version 11 or newer installed.
- Clone the repository to your computer.
- Use a dependency management tool like Maven or Gradle to compile and run the project. For Maven, you can use the command:
mvn testto run all unit tests.
Author: A. Falkowski | Project created as a programming exercise.