Professional Documents
Culture Documents
3 :- Calculate compound interest of given principal amount for given time period with given rate of interest appropriate control
Option Explicit Private Sub Command1_Click(Index As Integer) Dim p As Integer, r As Single, n As Integer Dim intr As Single p = Val(Text1.Text) r = Val(Text2.Text) n = Val(Text3.Text) intr = p * (1 + r) ^ n / 100 lbl4_caption = "command interest is" & intr End Sub
Q.3 :- Calculate compound interest of given principal amount for given time period with given rate of interest appropriate control
Option Explicit Private Sub Command1_Click(Index As Integer) Dim p As Integer, r As Single, n As Integer Dim intr As Single p = Val(Text1.Text) r = Val(Text2.Text) n = Val(Text3.Text) intr = p * (1 + r) ^ n / 100 lbl4_caption = "command interest is" & intr End Sub