Finding Simple Interest and Compound Interest Using VB
Finding Simple Interest and Compound Interest Using VB
This is a simple vb.net 2005 program to find simple interest and compound interest...
Declarations:
1. 'Create a windows application n rename it as InsertDemo...
2. 'Place radio buttons, labels, buttons and text boxes in the form n rename it...
3. 'Double click calculate button n write the given code below...
4. 'Save all n execute... give values to calculate...
Code:
Public Class Form1
Private Sub btnCalculate_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
btnCalculate.Click
Dim principal, years As Integer
Dim rate, interest, amount As Single
principal = txtPrincipal.Text
years = txtYears.Text
rate = txtRate.Text