Exercise 2
Using the GUI that you created in the previous exercise, complete the Calculator application. Write event code that will connect the calculator’s user interface to the appropriate event handlers for the various calculator’s functions. Then, write methods that will implement these functions (that is, write the code that will add, subtract, multiply and divide numbers that are displayed in the TextField). You may also enhance this application by adding functions like “M+”, “MR” and “MC”, as these can be found on standard calculators.