Skip to content

Za-Badi/Basic-Calculator-for-Multiple-Numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Basic-Calculator-for-Multiple-Numbers- Java

Zaha Badi

A console application "Calculator". The application must read the arithmetic operations entered by the user from the console and output the result of their execution to the console. The user inputs the whole mathematical expression in ONE line.

Requirements

  1. The calculator can perform addition, subtraction, multiplication and division operations with THREE numbers: a + b - c, a - b + c, a * b - c, a / b * c.
  2. Two numbers can also be used as input.
  3. The calculator must accept input numbers from 1 to 10 inclusive, no more. At the output, the numbers are not limited in size.
  4. The calculator can only work with integers.
  5. When the user enters invalid numbers, the application throws an exception and exits.
  6. When the user enters a string that does not match one of the above arithmetic operations, the application throws an exception and exits.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages