Write an app that allows the user to enter a series of


Program: Write an app that allows the user to enter a series of numbers and manipulate them. The app should provide users with the option of adding or multiplying the numbers. Users should enter each number in a TextBox. After entering the number, the user clicks a Button, and the number is inserted in a ListBox. The GUI should behave as in Fig. 10.20.

Part 1): Copying the template to your working directory. Copy the directory C:\ Examples\ ch10\ Exercises\ ArithmeticCalculator to your C:\ SimplyVB2010 directory.

Part 2): Opening the apps template file. Double click ArithmeticCalculator. sln in the ArithmeticCalculator directory to open the app.

Part 3): Adding a ListBox to display the entered numbers. Add a ListBox. Place and size it as in Fig. 10.20.

Part 4): Creating an event handler for the Enter Button. Create the Click event handler for the Enter Button. If the result of a previous calculation is displayed, this event han-dler should clear the result, clear the ListBox and disable the addition and multipli-cation Buttons. It should then insert the current number in the Operands list: ListBox. When the ListBox contains at least two numbers, the event handler should then enable the addition and multiplication Buttons.

Part 5): Summing the values in the ListBox. Define the Click event handler for the Add Button. This event handler should compute the sum of all the values in the Oper-ands list: ListBox and display the result in resultLabel.

Part 6): Multiplying the values in the ListBox. Define the Click event handler for the Mul-tiply Button. This event handler should compute the product of all the values in the Operands list: ListBox and display the result in resultLabel.

Part 7): Running the app. Select Debug > Start Debugging to run your app. Enter two val-ues, then click the Add and Multiply Buttons. Verify that the results displayed are correct. Also, make sure that the Add and Multiply Buttons are not enabled until two values have been entered. Enter a new value and verify that the previous result and the ListBox are cleared. Enter two more values, then click the Add and Multiply Buttons. Verify that the results displayed are correct.

Part 8): Closing the app. Close your running app by clicking its close box.

Part 9): Closing the IDE. Close the Visual Basic IDE by clicking its close box.a

Make this application using java programming. Create this application in simple and easy way.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write an app that allows the user to enter a series of
Reference No:- TGS0944316

Expected delivery within 24 Hours