Write a windows application in visual basic

Assignment Help Programming Languages
Reference no: EM13188743

Standard Calculator

Task: Write a windows application in Visual Basic to perform functions of a standard calculator

Description: Figure 1 shows standard calculator that comes with the Windows 7 operating system. The calculator allows a user to eater numeric values via the 0.9 keysibuttoas. Arithmetic functions such as. add. subtract. multiply. and divide can then be performed on the numeric data. Details of the arithmetic functions are shown in Table 1. Write a Windows application in VB to mimics the Windows 7 calculator. Use text box controls to display the operation being performed and the resulting answer. Sample screen shot of your calculator is shown in Figure 2.

295_Standard Calculator.png

 

Function

Button

Points

Description

1

End

2

End the program

2

C

2

Clean all values

3

CE

2

Clears the number displayed in the textbox

4

MC

2

Clean the number stored in memory

5

MR

2

 

Recalls the number stored in memory. The number remains in memory

6

MS

2

Stores the displayed number in memory

7

M+

2

Adds the displayed number to the number in memory

8

M-

2

Subtracts the displayed number from the number in memory

9

M

2

Displays red background when a number is in memory

10

0-9

2

Enters digits 0-9 and "."

11

/

5

Divides the previous number by the displayed number

12

11

5

Multiplies the previous number by the displayed number

13

-

5

Subtracts the previous number from the displayed number

14

+

5

Adds the previous number to the displayed number

15

+/-

5

Changes the sign of the displayed number

16

sqn

5

Calculates the square root of the displayed number

17

St

5

Enter a number. click an operator (+, -. *. or)). enter the second number. click %. and then click =. For example. 100 + 10% = 110. 100-10%=90. 100*10%=1000. and 100/10b= 10

18

1/x

5

Calculates reciprocal of the displayed number

19

=

5

Performs appropriate arithmetic operations

 

Reference no: EM13188743

Questions Cloud

Find the volume of the solid in the first octant bounded : Find the volume of the solid in the first octant bounded by the parabolic cylinder z = 4 - x^2 and the plane y = 2.
How many pumps are needed to inflate the ball : A fitness ball is delivered in a flat package witha hand pump. The pump inflates the ball at a rate of 280 cmcubed per pump, to a diameter of 28cm. How many pumps are needed to inflate the ball? Please explain how you got it.
Use the central limit theorem : Use the central limit theorem to find the probability that the average number of moths in 40 traps is greater than 0.6. Give your answer to four decimal places.
Establish the method of lagrange multipliers : establish the method of Lagrange multipliers in the case where we wish to find the extreme values of F(x,y,z) subject to the two constraint conditions G(x,y,z)=0, H(x,y,z)=0
Write a windows application in visual basic : The calculator allows a user to eater numeric values via the 0.9 keysibuttoas. Arithmetic functions such as. add. subtract. multiply.
What is the volume of the largest rectangular : what is the volume of the largest rectangular parallelepiped which can be inscribed in the ellipsoid x^2/9 + y^2/16 + z^2/36 = 1?
Graph both equations on the same axis : What is the point of intersection of the two graphs? What information does this give us?
Derive the best response functions for each firm : Consider a Cournot game in which there are two firms that face a market demand represented as Q = 500 - p and the cost function of firm i is Ci(qi)=50qi. Part a . Derive the best response functions for each firm. Part b . Calculate the Nash Equilib..
What is the largest volume box : Vanilla Box Company is going to make open-topped boxes out of 17 × 16-inch rectangles of cardboard by cutting squares out of the corners and folding up the sides. What is the largest volume box it can make this way?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program that takes one command-line argument

Write a program called runsim that takes one command-line argument. Check for the appropriate command-line argument and output a usage message if the command line is incorrect.

  Hierarchy of processes

Write a program that creates a hierarchy of processes using the fork() system call.

  Why is it significant to use systems analysis

"Why is it significant to use systems analysis and design methodologies when building system? Why not just build system in whatever way seems to be quick and easy?

  Create program to keep track of game collection

You wish to create a program which will keep track of the game collection at home. The program must recognize the platform.

  Find whether each shape is two dimensional shape

Find whether each shape is TwoDimensionalShape or a ThreeDimensionalShape. If it is a TwoDimensionalShape, display its area. If it is a ThreeDimensionalShape, display its area and volume.

  Write ipo steps and detailed pseudo code for program

Write IPO steps and detailed pseudo code for program which will ask user to enter restaurant meal cost. The program should then compute the tax, tip on the restaurant bill,

  Explain book constructor to accept and initialize data

Create and execute the class called Book which contains instance data for title, author, publisher, and copyright date. Explain the Book constructor to accept and initialize this data.

  Write program which inputs employee name

Write the program which inputs Employee Name and Tuition and prints, for each employee, Name and Rebate Amount.

  Approach for building site in-house with existing staff

Web site Consider your options for building the site in-house with existing staff, or outsourcing the entire operation. Decide which strategy you believe is in your company's best interest and create a brief presentation outlining your position.

  Expression whose value is distance between two point

a structured type with two fields, x and y, both of type double-- write an expression whose value is the distance between the two point represented by p1 and p2.

  Write down a macro which writes the single character

Write down a macro named putChar which writes the single character, passed a macro argument, to standard output in assemble language.

  Create program to enter number of packages bought

Create a program which asks user to enter number of packages bought . The program must then display amount of discount (if any) and total amount of purchase after the discount.

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