ECE 538 Assignment 6
Do the following exercises:
- Write a Java class to represent a spring. As discussed in
class, the spring should have a specified length, number of turns,
wire width, and zero-force extension.
Provide a drawing method to display a spring. Implement the ICON
interface and demonstrate that you can use your class in a
JOptionPane.
- Write a Java class to represent a several weights connected by
springs to each other and to the ceiling (top of window). You should
set up and solve a set of equations to find the equilibrium (static)
position of the weights.
- Write a Java application with a main window that contains a
button to create new standalone windows. The standalone windows should
be represented on the main window by an icon or sprite of some sort.
- Propose a game to be used as part of your final project. You should
complete your game before the end of classes and demonstrate and
explain the game to the class.
Your submission should include the usual source-code files, executable
programs, and a document reporting your work in general and
validation tests in particular.
Maintained by John Loomis,
last updated 12 July 2010