Skip to content

giri-bikash/arithmetic-calculator-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arithmetic Calculator — Java

A Java arithmetic application that performs basic mathematical operations with robust input validation and error handling.

Built as part of the SYST 17796 course at Sheridan College.


Tech

Java


Features

  • Addition, subtraction, multiplication, and division
  • Input validation to handle non-numeric entries gracefully
  • Division-by-zero error handling
  • Clean console-based user interface

How to Run

Prerequisites: Java 11+ and a terminal or IDE

Compile and run from the terminal:

# Clone the repository
git clone https://github.com/giri-bikash/arithmetic-calculator-java.git
cd arithmetic-calculator-java

# Compile
javac -d out src/**/*.java

# Run
java -cp out Main

Or open in IntelliJ IDEA / Eclipse and run the Main class directly.


Example Usage

Enter first number: 15
Enter operator (+, -, *, /): *
Enter second number: 4
Result: 60.0

Sheridan College — Computer Systems Technology

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages