Question: Create the following program: 1. Create the interface *exactly* as shown below. 2. The user can enter an operand, operator, and a second operand. When

Create the following program: 1. Create the interface *exactly* as shown below. 2. The user can enter an operand, operator, and a second operand. When the Calculate button is pressed, the result is calculated based on the operator. The operands, operator, and result are displayed in the listbox after the Calculate button is pressed. 3. V alid ope rators are +, - , *, /, ^, !, and EO . ^ is used to calculate powers. For example, 2^3 is 2 3 , which results in 8. To calcul ate even or odd, the user types a number in the top operand box, then the acronym EO in the operand box. When they press the Calculate button, they get a me ssage saying the number is even or that it is odd. ! is to calculate the factorial of the first operand. For example, 4 factorial is 4*3*2*1 which is 24 . See the examples below. 4 . Create three text - changed event handlers that will erase the listbox text when a new value is added to any text box. 5 . Display a message box when the user presses the Calculate button for +, - , *, /, and ^, and one or more text boxes are empty. The message box should prompt the user to enter values. It should have an OK button for the user to continue. Of course, the last textbox will remain empty if the operand is EO or ! , so you will need to make an exception for that. 6. Display a message box when the user attempts to divide by zero. The message box should warn them and not allow the divis ion to continue. See the examples below. 7. Display a message box when the user attempts to calculate with an invalid operator. See the examples below. 8. Create a Clear All button that clears the list box, both operands, and the operator. The Clear All button is disabled until a value is entered in at least one textb ox. It is disabled when Clear All is pressed. 9. Create a Clear button that only clears the list box. It is disabled until at least one item is in the listbox. It is also disabled when Clear or Clear All is pressed. 10. The Calculate button is disable d until values are entered into at least the first two textboxes. It is disabled once it is pressed, or when values are clea red from the first two textboxes

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!