Skip to content

SarathSjr/CLI---calculator-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ CLI Calculator (Java)

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.


โœจ Features

๐Ÿ”ข Arithmetic Operations

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Modulus (%)

๐Ÿ”ฌ Scientific Operations

  • Square Root (โˆš)
  • Power (a^b)
  • Sine (sin(ฮธ))
  • Cosine (cos(ฮธ))
  • Tangent (tan(ฮธ))

๐Ÿš€ How to Run

1. Clone the Repository

2. Open the project in any ide which supports java

3. Run MainClass.java


๐Ÿ—๏ธ Project Structure

  • MainClass.java โ€“ main program and menu
  • ArithmeticOperations.java โ€“ handles +, -, *, /, %, avg
  • ScientificOperations.java โ€“ handles sqrt, power, sin, cos, tan

๐Ÿ“ท Sample Output (optional but impressive)

Would you like to perform operation (yes/no): yes


๐Ÿ’ป Technologies Used

  • Java
  • Java Scanner and Math class

๐Ÿ“œ License

This project is open-source and free to use under the MIT License.


๐Ÿ“Œ Future Plans / To-Do (optional)

  • Add factorial and logarithmic functions
  • Add memory/history storage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages