A Command-Line Interface (CLI) calculator built in Java that supports both arithmetic and scientific operations. Designed for clean input handling, clear output formatting, and beginner-to-intermediate level Java practice.
- Addition (
+) - Subtraction (
-) - Multiplication (
*) - Division (
/) - Modulus (
%)
- Square Root (
โ) - Power (
a^b) - Sine (
sin(ฮธ)) - Cosine (
cos(ฮธ)) - Tangent (
tan(ฮธ))
MainClass.javaโ main program and menuArithmeticOperations.javaโ handles +, -, *, /, %, avgScientificOperations.javaโ handles sqrt, power, sin, cos, tan
Would you like to perform operation (yes/no): yes
- Java
- Java Scanner and Math class
This project is open-source and free to use under the MIT License.
- Add factorial and logarithmic functions
- Add memory/history storage