Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Java GUI to implement a programming calculator as below CALCULATOR HAS TO BE CLOSE OR EXACTLY AS DESCRIBED IN THE IMAGE BELOW. FOR HELP
Using Java GUI to implement a programming calculator as below
CALCULATOR HAS TO BE CLOSE OR EXACTLY AS DESCRIBED IN THE IMAGE BELOW.
FOR HELP BUTTON YOU CAN GET IMAGE OF HELP OPTION ON WINDOW CALCULATOR. DONT NEED TO CREAT "HELP" PROGRAM.
Disable Dword, Word, Byte, but keep the buttons there. Also, no interaction of the mouse on the binary bits area is required. Just display 64 bits for all the items with appropriate bits filled in based on the value in the number field.
Test Case: Please find below the list of test cases. 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)Calculator View Edit Help Menu Items View -> Hide and Show the calculator Edit - Copy the Text Help ->Perform the same as the actual Windows calculator 63 47 32 31 15 0 Quot Mod A Hex Dec Oct Bin o Qword Dword E 1 23 Word 0
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