Question: a simple calculator with two operand fields, a way to say what operation, and a way to calculate the results. To that you have to

a simple calculator with two operand fields, a way to say what operation, and a way to calculate the results. To that you have to add the three bullet points above.I need to make a simple calculater using java.

Replace the combo box drop down where the user selects the operation(+, -, /, *) with grouped radio buttons with matching labels of ("Add", "Subtract", "Divide", "Multiply"). Remember for this group there can only be one radio button active at a time. When you choose another option, whatever is currently showing active has to show inactive). Default to "Add".

Add a TextField or TextArea underneath the radio buttons. It should display the results of the operation. For example if you had "10" in Operand 1, and "4" in Operand 2, and the "Subtract" radio button was checked, this new TextArea should display "10 - 4 = 6". Each time a calculation is done this box is written over, we do not keep history.

Add a "Clear" button which will blank out all fields and reset the radio button group to Add. You should now have a "Calculate" button and a "Clear" button

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!