Program 1 (due Midnight Friday, September 10th) Your Questions Answered
Program 1 (Exercise 7-19) extends the calculator of exercise 7-18 on p 460. The class needs to implement a calculator with layout similar to the picture shown on p 460. The user has a choice of how to enter a number -either the buttons or the keyboard (your program must respond to button clicks and keyboard entry). Additional required features include
You will have to decide on several design issues such as
For full credit make effective use of event handling, exception handling, regular expressions, and pattern matching. At least two of these techniques should be used.
Submit your completed source code and any images in a zipped folder as an
attachment to the email address for your section. Your code must compile
and run. This is more important than full functionality.
Email:
CSC221.001@uncw.edu /
CSC221.002@uncw.edu
Note, if your program does not use images (none are required) then just the
source code is sufficient. Your name must be in a remark block in your source
code and in the subject line of your email.
Use the following code to your benefit, provided as an example of one way to handle getting the operands and operator if you decide to show the full expression in your screen: Calculator.java