Skip to content

Java-based calculator application supporting basic arithmetic operations and expression evaluation.

Notifications You must be signed in to change notification settings

AFalkowski1/java-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Java Calculator

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.


Features

  • 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.

Unit Tests

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.


How to run?

  1. Make sure you have the Java Development Kit (JDK) version 11 or newer installed.
  2. Clone the repository to your computer.
  3. Use a dependency management tool like Maven or Gradle to compile and run the project. For Maven, you can use the command: mvn test to run all unit tests.

Author: A. Falkowski | Project created as a programming exercise.

About

Java-based calculator application supporting basic arithmetic operations and expression evaluation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages