Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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 display 64 bits for all the items with appropriate bits filled in based on the value in the number field. 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 0000 0000 0000 0000 0000 0000 0000 Hex Mod A Dec B CE C t v Oct 7 8 9 Bin 4 5 6 o Qword Dword E 1 2 3 Word Byte 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. 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 0000 0000 0000 0000 0000 0000 0000 Hex Mod A Dec B CE C t v Oct 7 8 9 Bin 4 5 6 o Qword Dword E 1 2 3 Word Byte

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

Always mention the specifi c problem the customer faced.

Answered: 1 week ago

Question

3 The distinction between microeconomics and macroeconomics.

Answered: 1 week ago

Question

2 The role of economic theory in economics.

Answered: 1 week ago