Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 1 / Lab 1 / Instructions
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
   + NeXtMidas Shell   
   + Running NeXtMidas Commands   
   + Results Parameters   
   - Lab 1   
      - Instructions   
      - Solution   
   + Getting Help   
   + Lab 2   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • 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?