Question
In this homework, I am working on Java GUI Components and interfaces. The objectives of this program are to learn the use of Java swing
In this homework, I am working on Java GUI Components and interfaces. The objectives of this program are to learn the use of Java swing components, GroupLayout, ActionListener, and MouseListener interfaces. The calculator must come with a menu (which its requirements are shown in the image below) and it must be capable of accepting hex, dec, oct, and bin inputs. It must be graphically similar (while not necessarily 100% so) to the image shown below, and be capable of using all of its buttons.
All of the test cases that will come with this calculator are...
1.Look and feel of the calculator. 2.The 64 bits binary value of the entered number in the number field should be displayed correctly. 3.Should be able to access some help documentation from the menu item Help. Does not have to be the same as the Windows Calculator 4.Should be able to hide and show the calculator using the menu item View. 5.Should be able to copy the content (in the number field) using the menu item Edit. 6.All basic arithmetic operations (+, - , / , *, etc.) must be performed correctly. Results with decimal places or negative values should be displayed appropriately. 7.There is no order of operation expected; if someone has implemented it that way then it is OK either way 8.There should be no interaction of the mouse expected on the binary bits area. 9.Functionality of C, CE and Backspace should be the same as that of windows calculator. Functionality Test Cases Addition of two integer numbers. Addition of two negative numbers. Addition of one positive and one negative number. Subtraction of two integer numbers. Subtraction of two negative numbers. Subtraction of one negative and one positive number. Multiplication of two integer numbers. Multiplication of two negative numbers. Multiplication of one negative and one positive number. Division of two integer numbers. Division of two negative numbers. Division of one positive number and one integer number. Division of a number by zero. Division of a number by negative number. Division of zero by any number. Basic Conversion of Hex, Dec, Bin, Oct shall work (Handling of Overflow of numbers is not required)Disable Dword, Word, Byte, but keep the buttons there. Also, no interaction of the mouse on the binary bits area is required. Just display64 bits for all the items with appropriate bits filled in based on the value in the number field. Calculator View Edit Help Menu Items Hide and Show the calculator Edit Copy the Text Help Perform the same as the actual Windows calculator 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 Her Quot Mod A Dec Bin Qword ODword E 1 2 3 word
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started