• Lab 1:
    • This lab will show some of the basics of running commands in NeXtMidas. Since we have not yet covered how to get help in NeXtMidas, everything will be explained in this lab. If you get stuck, feel free to look at the solution on the next page.
    • Commands you will need to use:
      GET
      SET
      CALCULATOR
      This is a simple reverse polish calculator.
      For this lab all you need to know is that it can be used with the following syntax:
      CALCULATOR <label> <a> <b> <op>
      Where <label> is the name of the result to store the answer to, <a> and <b> are numbers and <op> is the operation to perform (can be +, -, *, or /, for add, subtract, multiply, and divide).
      If the /HEX switch is provided the answer will be given in hexadecimal (base-16) notation.
    • What you need to do:
      1. Start a new NeXtMidas session.
      2. Start the NeXtMidas shell.
      3. Set a result, X to 7.5.
      4. Compute the value of X multiplied by 3.5 and store the result in Y.
      5. Now change the value of X to be 2.5.
      6. Compute the value of X multiplied by Y and store the result in hexadecimal notation in Z.
      7. What are the values of X, Y, and Z?