CS130 - 4/6/11
- Three Java statements (for details see the beginning of
Chapter 5).
- Message
- Assignment
- Return
- The slightly updated lab write-up
How to proceed (one thing at a time!) -- assuming you have a working Applet (see last lecture)
- Decide whether you want to have a link to it or embed it directly in your web page
- To link to it, add a <a> tag pointed to the HTML file NetBeans generates
- To embed it, add an <applet> tag that points to it
- In either case, adjust the size as necessary; see this write-up for details.
- How should the calculator work? *Real* calculators work differently than the ones I've been making...
- 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)?
- Enters 2
- pushes +
- enters 2
- pushes =
- pushes -
- enters 2
- pushes +
- enters 15
- pushes =
- pushes C