Vous êtes sur la page 1sur 2

Seatwork #1

Create a program that will ask four numbers and give the resulting value when any of the mathematical operation
is click accordingly. Clear button will clear all the textboxes. Exit button will exit the program.

Control Name
1-lblFirst
1 6 2-lblSecond
3-lblThird
2 7 4-lblFourth
5-lblResult
3 8 6-txtFirst
4 7-txtSecond
9
8-txtThird
5 10 9-txtFourth
10-txtResult
11-cmdAdd
11 13 15 12-cmdMul
13-cmdSub
12 14 16 14-cmdDiv
15-cmdClr
16-cmdExit

Variables: First, Second, Third, Fourth, Result

Seatwork #2
Create a program that will ask for a radius of a circle. When the Compute button is click it will compute the area,
circumference and diameter of a circle. Clear button will empty all the textboxes. Exit button will exit the program.

Control Name
1-lblRad
2-lblArea
3-lblCirc
1 5 4-lblDiam
5-txtRad
2 6
6-txtArea
7-txtCirc
8-txtDiam
3 7 9-cmdComp
10-cmdClr
4 8 11-cmdExit

9 10 11

Area = PiR^2
Circumference = 2PiR
Diameter = 2R

Variables: Radius, Area, Circumference, Diameter, Pi


Seatwork #3
Create a program that will ask for a certain amount in peso and it will give an equivalent value accordingly as
shown in the example below. Use the given conversion table. Clear button will empty the textboxes and Exit button will
exit the program.

Control Name
1-cmdDinar
2-cmdPound
1 2 3 3-cmdEuro
4-cmdUS
5-cmdCanadian
4 5 6-lblPeso
7-txtPeso
8-lblValue
6 7 9-txtValue
10-cmdClr
11-cmdExit
8 9

10 11

CONVERSION:
Dinar 146.6937 US 55.000
Pound 99.8808 Canadian 44.1557
Euro 66.5402

Suggested Variables: Dinar, Pound, Euro, US, Canadian, Peso, Foreign.

Seatwork #4
Create a program that will ask for the Price, number of Quantity, Discount and it will compute for the New Price
once the Calculate button is click.

Control Name
1-lblPric
2-lblQnty
1 5 3-lblDisc
4-lblNPric
2 6 5-txtPric
6-txtQnty
7-txtDisc
3 7
8-txtNPric
9-cmdCalc
4 8
10-cmdClr
11-cmdExit
9 10 11

Suggested Variables: Price, Quantity, Total, Discount, Result, NPrice.

Vous aimerez peut-être aussi