Java, Java, Java E3
Chapter 5: Java Data and Operators
Ch 5 Lab: The Days in Month Problem
Click here for the lab writeup writeup.html
Authors: Bronzell Dinkins
Trinity College, Hartford, CT
Brief description
This is a lab that is suitable for Chapter 5. It requires simple
arithmetic, relational, and if/else operations and the creation of a
simple applet interface involving Button and
TextField components. Its emphasizes the use of
inheritance and polymorphism in creating a subclass of
the java.applet.Applet class that implements the
ActionListener interface.
The objectives of this lab are:
- To give practice writing a simple Java applet.
- To give practice using the nested if/else control structure.
- To introduce the ideas of data validation and object
integrity.