Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 1 / Lab 1 / Solution
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 (solution):
    • Here is what you should have done:
      1. Start a new NeXtMidas session.
        $ nmstart
      2. Start the NeXtMidas shell.
        $ nm
      3. Set a result, X to 7.5.
        nM> set x 7.5
      4. Compute the value of X multiplied by 3.5 and store the result in Y.
        nM> calculator y x 3.5 *
      5. Now change the value of X to be 2.5.
        nM> set x 2.5
      6. Compute the value of X multiplied by Y and store the result in hexadecimal notation in Z.
        nM> calculator/hex z x y *
      7. What are the values of X, Y, and Z?
        nM> get x
          D: X               = 2.5
        nM> get y
          D: Y               = 26.25
        nM> get z
        10S: Z               = 0x00000034