Skip to content

nhope123/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

Web base app for performing standard mathematical computations.

Functions

Computational functions include:

  • Multiplication
  • Division
  • Subtraction
  • Addition

Additional function:

  • Clear / Reset

Display

There is a two level display, one for immediate input and another for the acquired equation. The acquired equation is located at the of the display screen followed by the immediate input.

Functionality

  • This Calculator can be operated by the click of Mouse, a Touch pad, the Tab button or a Numeric keypad.
  • Equations containing the following elements can be evaluated:
    • Multiplication
    • Division
    • Addition
    • Subtraction
    • Negative numbers
    • Positive numbers
    • Integer numbers
    • Decimal numbers
  • Integer number cannot begin with a zero.
  • Decimal number cannot begin with multiple zeros before the decimal point.
  • When consecutive computational operators are selected, the last operator is used (excluding the negative (-) sign).
  • Selecting a computational operator after an equal operator will start a new equation containing the result from the previous equation.
  • Selecting a decimal point after an equal operator will start a new equation containing a decimal starting with a zero (0.).
  • Formula logic is used for this Calculator's logic, where order of operation precedence is observed.

Implementation

The following languages, framework and libraries were used in the creation:

Screenshot

Calculator Screenshot

Credit

Acknowledgement

Thank you to Freecodecamp.org for the project idea.

License

Calculator is an open source software licensed as GNU General Public License v3.0