Skip to content

The advanced calculator implements advanced operations such as sin, cos, tan, ln, log, %, sqrt, x^2, x^y

Notifications You must be signed in to change notification settings

cheretka/Advanced-Calculator

Repository files navigation

Simple and Advanced Calculator

The aim is to provide the functionality of the calculator which, depending on the user's choice, will allow to perform basic or advanced calculations.

Main menu

Simple or advanced calculator type selection.

The simple Calculator

The simple version of the calculator should enable the performance of basic mathematical operations:

  • Four basic operations: addition(+), subtraction(-), multiplication (*), division (/).
  • Changing the sign of a number (+/-)
  • Clear enter / clear
  • All clear (AC)
  • Operation result display (=)

The advanced Calculator

The advanced version of the calculator, in addition to the basic ones, should also implement more advanced operations, including the mandatory:

  • Trigonometric functions: sine (sin) cosine (cos) tangent (tan)
  • Logarithmic functions: natural logarithm (ln) logarithm (log)
  • Calculation of percentages (%)
  • Root (sqrt)
  • Exponentiation (x ^ 2) (x ^ y)