Q. Develop windows application for calculating simple interest where Simple Interest = (Principal x
Time x Rate) / 100. Calculate the simple interest at least up to three decimal accuracy.
Source Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SI As Double
SI = (TextBox1.Text * TextBox2.Text * TextBox3.Text) / 100
TextBox4.Text = SI
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
Time x Rate) / 100. Calculate the simple interest at least up to three decimal accuracy.
Source Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SI As Double
SI = (TextBox1.Text * TextBox2.Text * TextBox3.Text) / 100
TextBox4.Text = SI
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
Comments
Post a Comment