Creating an event handler for the enter button

Assignment Help JAVA Programming
Reference no: EM13945649

(Arithmetic Calculator Application) Write an application that allows the user to enter a series of numbers and manipulate them.

The application should provide users with the option of adding or multiplying the numbers. Users should enter each number in a TextBox. After entering each number, the user clicks a Button, and the number is inserted in a ListBox.

a. Copying the template to your working directory. Copy the directory:
C:ExamplesTutorial10ExercisesArithmeticCalculator to your C: SimplyVB2008 directory

b. Opening the application's template file. Double click ArithmeticCalculator.sln in the Ari thmeti cCal cul ator directory to open the application.

c. Adding a ListBox to display the entered numbers. Add a Li stBox. Place and size it

d. Creating an event handler for the Enter Button. Create the Cl i ck event handler forthe Enter Button. If the result of a previous calculation is displayed, this event handler should clear the result, clear the ListBox and disable the addition and multiplication 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.

e. Summing the values in the ListBox. Define the Cl i ck event handler for the AddButton. This event handler should compute the sum of all the values in the Oper-ands list: ListBox and display the result in resultLabel .

f. Multiplying the values in the ListBox. Define the Cl i ck event handler for the Multiply Button. This event handler should compute the product of all the values in the Operands list: ListBox and display the result in resultLabel.

g. Running the application. Select Debug > Start Debugging to run your application. Enter two values, 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 is cleared. Enter two more values, then click the Add and Multiply Buttons. Verify that the results displayed are correct.

h. Closing the application. Close your running application by clicking its close box.

i. Closing the IDE. Close the Visual Basic IDE by clicking its close box.

Attached is the file with the correct information.

Attachment:- Tutorial10.zip

Reference no: EM13945649

Questions Cloud

What implications would make for age of the sandstone : Zircon crystals formed when a granite magma crystallised. Since then, geological processes have caused some of these crystals to end up with grains in a sandstone. What sequence of events would account for this?
A lobbyist presenting to a policy-making body : In this assignment, you are a lobbyist presenting to a policy-making body that will use the information to allocate resources and shape regulations aimed at this component of the health care continuum.
What benefits and advantages does it bring to business : Why IT is important for business survival? What is required to apply IT into business? How can business maintain and monitor IT? What benefits and advantages does IT bring to business?
What is the projection for next year inventory : Use the "percent of sales method" of preparing pro forma financial statements to determine the projection for next year's inventory. Make the following assumptions: current year's sales are $24,500,000; current year's cost of goods sold is $15,925..
Creating an event handler for the enter button : The application should provide users with the option of adding or multiplying the numbers. Users should enter each number in a TextBox. After entering each number, the user clicks a Button, and the number is inserted in a ListBox.
What are the three categories of sedimentary rocks : What are the three categories of sedimentary rocks? What are the distinguishing characteristics between the three categories of rocks?
To prepare for the examination of financing sources : To prepare for the examination of financing sources, write a two to three page (not including the title and reference pages) Executive Summary for a Business Plan. This process involves the describing the market, describing your capital needs as w..
How do the minerals common in rocks and sediments reflect : How do the minerals common in rocks and sediments reflect or respond to the changing conditions? How might the apparent rock ages determined by radioactive dating methods be established or altered in the various environments?
What is the probability that at least half of the room : What is the probability that at least half of the rooms are occupied on a given day?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd