standard calculatortask write a windows


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

 

Request for Solution File

Ask an Expert for Answer!!
Application Programming: standard calculatortask write a windows
Reference No:- TGS0501377

Expected delivery within 24 Hours