Skip to content

AmanVerma8840/Java-Console-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Console Calculator:

This is a simple console-based calculator application written in Java that supports:

  1. Addition, Subtraction, Multiplication, and Division
  2. Operations on two or more numbers
  3. Looped user interaction until the user exits
  4. Clean separation of logic using two classes

Calculator Features:

  1. Add, Subtract, Multiply, Divide any number of inputs (2 or more)
  2. Validates input to avoid divide-by-zero
  3. Uses a loop to keep the calculator running until the user exits
  4. Modular code with reusable methods
  5. Clean separation using OOP (Object-Oriented Programming)

MainApp.java:

This is the entry point of the application:

  1. Displays a menu to the user.
  2. Accepts the number of operands.
  3. Reads each number and stores it in an array.
  4. Passes the array to the corresponding method in Calculator.
  5. Shows the result.
  6. Repeats until the user chooses to exit.

About

Java Console Calculator is a simple, menu-driven calculator application built using Java console I/O. It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division on two or more numbers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages