Skip to content

kannah-coder/MiniCalculator-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Calculator

Overview

This is a simple Java Calculator program that allows users to perform various arithmetic operations. It supports basic operations as well as some advanced functions like power, square root, and factorial.

Features

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Modulus (%)
  • Power (^)
  • Square Root ()
  • Factorial (!)

The program handles invalid inputs such as division by zero or negative numbers for square roots and factorials.


Menu-Driven Calculator

A simple Java console-based calculator that allows the user to perform basic operations using a menu system. This program demonstrates the use of loops, switch statements, and if conditions in Java. This loop is simple as using basic conditons of java very much easy and understandable The methods in this calculator is additon,subtraction,multiplication,divison,modulus,power,check Even or Odd .


Features

  • Addition, Subtraction, Multiplication, and Division
  • Check if a number is Even or Odd
  • Prevents division by zero
  • Menu repeats until user chooses to exit

SimpleCalculator/ ├── src/ │ ├── Calculator.java │ ├── CalculatorMain.java

├── README.md └── .gitignore ├── MenuCalculator.java

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages