Calculator Lab --------------------------------------------------------------------

You are to build a four-function calculator that works as follows:

  • Use either a JOptionPane or EasyReader to input a line of text containing an expression with no spaces.
  • (Assume no parentheses or exponents)
  • Using the correct order of operations, calculate the value of the expression. It should allow for any length input, but you can safely assume it will be entered correctly.
  • EXAMPLE:
    INPUT: 5+4*3/2 - 1
    OUTPUT: 10

    EXTRA CREDIT

  • Allow for the use for parentheses. Assume they are entered correctly.
  • MORE EXTRA CREDIT

    EVEN MORE EXTRA CREDIT

    COUNTLESS ADDITIONAL EXTRA CREDIT