App that allows the user to enter a series of numbers

Assignment Help JAVA Programming
Reference no: EM13690910

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.

Reference no: EM13690910

Questions Cloud

Make a function in dr racket : Make a function in Dr Racket that consumes a string and figures out if it starts with a specific letter of the alphabet - Can you help me how should I go about this? Please any ideas?
Who developed the ibm pc : What is the code name for the 12 engineers who developed the IBM PC and In which year did Amazon.com report that for the first time sales of e-books exceeded the sales of hardcover books?
Train traveling in terms of minutes : Write a code for the following C++ problem. We will have a user that will be asked to input the time of a train traveling in terms of minutes and these minutes is a non-negative integer.
Design the logic for a program : Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas.
App that allows the user to enter a series of numbers : 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.
Design the hardware and software driver : Design the hardware and software driver that will implement a byte-wide data transfer from your processor to a peripheral device. Each transfer has to accompany by a strobe to deskew the data.
How can we use a resonant tuned filter : A class C amplifier severely distorts the signal. How can we use a resonant tuned filter to get the desired signal at the output
How many of the bits in a 6 bit unsigned number : Design a logic circuit to figure out how many of the bits in a 6 bit unsigned number equal 1. Design the simplest possible circuit to accomplish this.
How many copies she should purchase : List some of the considerations that would go into such a system as if you were the owner of the store and your business profits were at stake.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Cross the dark knight and the living flame of love

What challenges does spain get from the text john of the cross the dark knight and the living flame of love?

  Make a program in java language with classes

Make a program, in JAVA language with classes, that simulates health attending in one business day, according to the information just given.

  Write down several reasons why exception-handling

question 1 give several reasons why exception-handling techniques should not be used for conventional program

  Recursive method

What will happen when the following recursive method is executed with an initial input value of 10?public int recursiveMethod(int input)

  Create the class airplane

Your missions is to create the class Airplane. Each Airplane object should store the following information (fields):

  Cse-241 advance programming conceptspoint of sale

cse-241 advance programming conceptspoint of sale terminalin this assignment you will be tested on the concepts related

  Develop a gui based java program

Designing and developing a College Registration program

  Java method for radix sort in binary

java method for radix sort in binary but I want to understand how to do it so please make it as simple as possible

  Add a button that will read the text fields

Create a GUI with two text fields for inputting the dimensions of a rectangle. Identify these two text fields as Length and Width with labels. Add a button that will read the text fields and cause the GUI to display the area and perimeter of the r..

  The fancy new french restaurant la food is very popular for

the fancy new french restaurant la food is very popular for its authentic cuisine and high prices. this restaurant does

  Define a class called counter an object of this class is

define a class called counter. an object of this class is used to count things so it records a count that is a

  Write a program that asks a user for a file name and prints

Write a program that asks a user for a file name and prints the number of characters, words, and lines in that file.

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