CSCI 3326

Assignment #9

Due date:   Monday, 3/22/2010, start of class

 

Hand in:

Place all of your source code files ( .java files ) into a single file, compress that file into a zip with the title "yourFirstNameYourLastNamehwkX.zip" (for example, RobertSchwellerhwk9.zip), and send this zip file to me as an email attachment.  The subject of the email must be:

cs3326hwk9

 

 

Create a GUI that acts as a calculator with 10 buttons for the numbers 0-9, as well as buttons for add, multiply, divide, subtract, and square root.  Include a field in which the current number on the calculator is displayed.  Further, add an "undo" button which will undo the last change.  If the undo is pressed x times, the result displayed should be what the calculator displayed before the last x operations.