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

  Design a program written psuedocode enter total rainfall

Design a program WRITTEN IN PSUEDO CODE that lets the user enter the total rainfall for each of 12 months into an array.

  Design a class for string field for toppings

Design a class named pizza. Data fields include a string field for toppings (such as pepperoni) and numeric fields for diameter in inches (such as 12) and price (such as 13.99).

  Describe issues-web site designers when adding multimedia

Describe some of the issues web site designers must consider when adding multimedia to a web site. Consider issues such as bandwidth, server load, or others you consider to be important. Please provide references.

  Explaining class definition of subclass of square

Write down the class definition of subclass of Square called FancySquare which has a method called getDiagonal. The getDiagonal method gets no arguments.

  Determining suitable parameters if pass-by-reference is used

Subprocedures in VBA utilize pass-by-reference. Which function or sub procedure alters its parameter?

  Write application that inputs five number

Use a one-dimensional array to solve the following problem: Write an application that inputs five numbers, each of which is between 10 and 100, inclusive.

  Write down program to arbitarily choose numbers

Write down a program to arbitarily select the numbers of 3 finalist to recieve a prize. Ensure not to choose same number twice. For instance picking finalist 3, 15, 29 woul valid but picking 3,3,31 would be invalid.

  Program to display only unique values which user entered

Program to display only the unique values which the user entered. Give for the "worst case" in which all 20 numbers are different. use smallest possible array to solve this problem.

  Program to perform a search of an employee list

Write a /bash/bin program to perform a search of an employee list.

  Program to give and take advice on program writing

Write down the program which gives and takes advice on program writing. Program starts by writing the piece of advice to screen and asking user to type in different advice.

  Write class which uses string array or arraylist

Write the class which uses string array or arraylist object to holld five students, array to hold five charters student letter grade) and five arrays of doubles each to hold each students set.

  Program accept word from user and pass it to function

Your program should accept the word from user and pass it to function. Function requires to check if word is "freezing". If it is, program must alert user.

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