Homework 4

Out: Thurs, 19 October, 2000
Due: Tue, 31 October, 2000

Programming Assignment:

Write a currency converter applet. Start from Greetings.java as your model. Use one CheckBoxGroup of CheckBoxes to indicate the "from" currency and another group to indicate the "to" currency. Either hitting enter in the text box or a Button labeled "Convert" initiates the conversion.

If you don't like money, then covert between different length units such as feet, yards, meters and so on, or weights.

You will have to convert a String to a double and back. Do this with the class methods:

    Double.parseDouble( String s)
and
    Double.toString( double d)
as in this example.