Homework
Provide a brief definition of the following terms (in the interface
programming context):
- Statement
- String literal
- Keyword
- Increment
- Variable Type
- Cast
- Nesting
- Constant
If you use a source (book or web site), cite your source. (The sites
http://whatis.techtarget.com/ and http://www.webopedia.com/ are decent
sources for technical definitions.)
You must have a comment with your name as well as meaningful
control names.
Design a form like that above
- It has a checkbox that allows the user to indicate whether or not the
house has central air.
- It has a combobox that allows the user to select the season
(Spring, Summer, Fall or Winter). When the user selects a season
change the color of the label (spring: light green, summer: light
yellow, fall: wheat, winter: white).
- It has a second combobox that allows the user to select
the style of home (Single, Duplex or Row).
- It has a button that estimates the monthly electric bill based on the
information entered above. (If a season or style was not selected, a
messagebox arises and the offending combobox is given the focus.)
- The basic estimates are as follows:
Single
Fall, Spring: $50.00
Winter: $250.00
Summer: $50.00 (without central air), $200.00 (with)
Duplex
Fall, Spring: $40.00
Winter: $200.00
Summer: $40.00 (without central air), $150.00 (with)
Row
Fall, Spring: $35.00
Winter: $175.00
Summer: $35.00 (without central air), $125.00 (with)
The result is reported in a label. It reports the data (one piece of data
per line) used to make the estimate and formats the result as money. If the user
changes any of the input data, the result should be cleared out.
Due: Sept. 17