For this project you are asked to design and implement an AddingMachine class that provides the user interface for a simple adding machine. The adding machine is like a calculator application, but only does addition. Your program only needs to display the user interface, and exit when the user clicks the window's close box. Next week you will add code to make the adding machine's buttons functional.
The user interface should contain twelve buttons: one for each digit 0-9, a "Clear" button, and an "Enter" button. There should also be a label that is used for the AddingMachine's display.
The AddingMachine's display value should be right justified along the top of the calculator. It should not change its height when the window is resized. Initially the number 0 is displayed. Check documentation to see how to get the text of a label right aligned. The twelve buttons should all have equal widths and heights and should fill the remainder of the AddingMachine window. The figures below show how the AddingMachine should look depending on the size and shape of the window:
Draw a UML class diagram of the AddingMachine
class, showing all of the fields and methods, including their
accessibility (public or private) and data types.
When your assignment is complete, add some comments to the comment block of the java source code explaining any problems you encountered in completing the assignment and describing any bugs in your solution.
Submit your source code (AddingMachine.java) as well as your class diagram as email attachments to: ttao@umassd.edu. Alternatively, you may submit your class diagram in hardcopy.Use the subject line CIS-180 HW#6 in your email.
There will be a 10% penalty for assignments received after the due date. Assignments will not be accepted more than one week past the due date.