/calculator

A simple calculator that allows the user to add, multiply, subtract, and divide two numbers.

Primary LanguageJavaScript

SDG Assignment : Calculating Hooks

A simple calculator that allows the user to add, multiply, subtract, and divide two numbers.

Calculator

Requirements:

  • Implement something similar to the example UI using HTML and CSS inside a React app
  • As a user, I should be able to add two numbers
  • As a user, I should be able to add subtract numbers
  • As a user, I should be able to add multiple numbers
  • As a user, I should be able to add divide numbers
  • The clear button should reset the current calculation

Adventure Mode

  • Show the user their history in a list
  • Be able to chain together results. For example, the user should be able to input 2 + 3 - 4 + 5 and get the correct answer
  • Let the user use their keyboard in addition to the mouse

Epic Mode

  • Using your systems calculator app as inspiration, implement as many features as you can, including, but not limited to scientific mode, exponents, and the order of operations.