CS130 - 4/6/11

  1. Three Java statements (for details see the beginning of Chapter 5).
    1. Message
    2. Assignment
    3. Return
  2. The slightly updated lab write-up How to proceed (one thing at a time!) -- assuming you have a working Applet (see last lecture)
    1. Decide whether you want to have a link to it or embed it directly in your web page
      1. To link to it, add a <a> tag pointed to the HTML file NetBeans generates
      2. To embed it, add an <applet> tag that points to it
      3. In either case, adjust the size as necessary; see this write-up for details.
  3. How should the calculator work? *Real* calculators work differently than the ones I've been making...
  4. ABC extended; the notion of "state" -- consider this sequence of actions, what should the calculator do for each one (both what should happen in the GUI and inside the program)?
    1. Enters 2
    2. pushes +
    3. enters 2
    4. pushes =
    5. pushes -
    6. enters 2
    7. pushes +
    8. enters 15
    9. pushes =
    10. pushes C