Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.23 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.23 KB

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)