Arithmetic calculator application

Assignment Help Software Engineering
Reference no: EM1379886

Create an application that permits 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.

Reference no: EM1379886

Questions Cloud

What are general pitfalls that someone would expect : What are general pitfalls that someone would expect to encounter in negotiating their salary for a new job (be specific)
What three qualities of leadership they exhibited : Did you experience a greater belief in your abilities as a result of something this person did or said. Describe ways in which this person acted as a leader for you also what three qualities of leadership they exhibited.
Define the communication channels in your organizations : Define the communication channels in your organizations in terms of form, formality and functionality
How much product is wasted when we have inventory that goes : How much product is wasted when we have inventory that goes obsolete or is spoiled (from having too much on hand)? Also, what does it cost to receive, store, track also re-locate this entire inventory.
Arithmetic calculator application : Create an application that permits the user to enter a series of numbers and manipulate them. The application should provide users with the option of adding or multiplying numbers.
Critical component in business communication : Writing clear as well as effective emails that get read is a critical component in business communication. Take a look at the attached website as well as read about the key points to an effective email.
What is real discount rate in percentage : Real discount rate is 8 percent. Corporation tax rate is 34%. Sanders have or ongoing profitable operation. Should company accept.
Shortly prior to the scheduled representation election : Shortly prior to the scheduled representation election the hospital employees in the unit subject to the election received a letter that seemed to be a letter from the NLRB
Explain steps you conducted in completing this assignment : Explain steps you conducted in completing this assignment. Submit your answers in a three- to five-page Microsoft Word document also a Microsoft Excel sheet.

Reviews

Write a Review

Software Engineering Questions & Answers

  Development of a small software system

Analysis, design and development of a small software system.

  Process of formal software testing

Discuss and explain software testing as a career path, and consider what skills would be desirable for a software tester.

  Create state transition diagram that describe patient state

Create a state transition diagram that describes typical patient states and how they change based on specific actions and events.

  Finding example of source code

Discover one example of each label in the following source code and write the line number of the example next to the label.

  Create a diagram for many-to-many relationship of entity

One-to-many or many-to-many relationship. Then, using short-hand notation introduced in text, create a diagram for each of the relationships.

  Draw decision table and draw decision tree

Write structured english for clyde's narrative of the reimbursment policies. Write structure English, draw decision table and draw decision tree.

  Identifying the tokens

Suppose that we are looking in a programming language that allows underscore in variable names. When a scanner sees a character string such as AB_CD.

  Approach to system development to define large project

Third approach to system development might be to define one large project which will use iterative approach to the SDLC. Briefly explain what you would include in each iteration.

  Draw entity-relationship diagram students playing games

Draw an entity-relationship diagram for the following situation: Many students play many different sports. One person, called the head coach, assumes the role of coaching all these sports.

  Assign resources to processes for k processes will be active

Given a set of process and resources, set of requested resources for each process, and number k, is it possible to assign resources to processes so that at least k processes will be active?

  Write balanced transportation problem to minimize sum

With customer 1 penalty cost of 490 is incurred; with customer 2, $80; and with customer 3, $110. Write balanced transportation problem to minimize the sum of shortage and shipping cost.

  Design an eer diagram for ciuntry club

Once a person becomes a member of any type, information about them as guests is no longer important to retain. Design an EER diagram for this situation.

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