Practical Assignment Demo
Practical Assignment Demo
PATH:
DATE:
FORM DESIGN:-
SETTINGS:-
1|Page
Ms Preeti Jain Assistant Professor Of Computer Science Department of St Thomas College Bhilai
6. Command 2 Subtraction
7. Command 3 Multiplication
8. Command 4 Division
9. Command 5 Clear
10. Command 6 Exit
CODING:-
a = Val(Text1.Text)
b = Val(Text2.Text)
c=a+b
Text3.Text = c
End Sub
a = Val(Text1.Text)
b = Val(Text2.Text)
c=a-b
Text3.Text = c
End Sub
2|Page
Ms Preeti Jain Assistant Professor Of Computer Science Department of St Thomas College Bhilai
Private Sub Command3_Click()
a = Val(Text1.Text)
b = Val(Text2.Text)
c=a*b
Text3.Text = c
End Sub
a = Val(Text1.Text)
b = Val(Text2.Text)
c=a/b
Text3.Text = c
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub
Unload Me
End Sub
3|Page
Ms Preeti Jain Assistant Professor Of Computer Science Department of St Thomas College Bhilai
OUTPUT:-
4|Page
Ms Preeti Jain Assistant Professor Of Computer Science Department of St Thomas College Bhilai
ASSIGNMENT-02
AIM:- WAP to take input of principal, rate & time and calculate simple interest
and compound interest.
FORM DESIGN:
CODING:
p = Val(Text1.Text)
r = Val(Text2.Text)
t = Val(Text3.Text)
si = p * r * t / 100
Text4.Text = si
End Sub
5|Page
Ms Preeti Jain Assistant Professor Of Computer Science Department of St Thomas College Bhilai
Private Sub Command2_Click()
p = Val(Text1.Text)
r = Val(Text2.Text)
t = Val(Text3.Text)
ci = p * (1 + r / 100) ^ t
Text5.Text = ci
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub
Unload Me
End Sub
6|Page
Ms Preeti Jain Assistant Professor Of Computer Science Department of St Thomas College Bhilai
OUTPUT:
7|Page
Ms Preeti Jain Assistant Professor Of Computer Science Department of St Thomas College Bhilai