This is a basic console-based calculator application implemented in Java. The application performs basic arithmetic operations like addition, subtraction, multiplication, and division.
Follow these instructions to run this application on your local machine for development and testing purposes.
Ensure you have Java Development Kit (JDK) installed on your machine. If not, download it from the official Oracle website.
The project follows this directory structure:
project_directory
│ Main.java
└───Calculator
│ Calculator.java
-
Navigate to the project directory where
Main.java
is located. -
Compile the Java files using the command:
javac Main.java Calculator/Calculator.java
. -
Run the application using the command:
java Main
.
On execution, the application prompts you to input two numbers and an operator (+
, -
, *
, /
). After input, the application displays the result of the operation on the console.
The project is divided into two main files:
-
Main.java
- This is the entry point of the application. It handles user input and output. -
Calculator/Calculator.java
- This file contains theCalculator
class, which implements the basic arithmetic operations.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Thanks to OpenAI for their AI model, GPT-3 for generating this Learning Project Idea.