我正在尝试编写一个简短的程序,用于计算用户输入金额和APR时每月存入金额的利息。我已经开始声明这些变量了,但是我不确定从那里开始,这就是我到目前为止所做的。
Option Strict On
Public Class Form1
Private Sub btnBalance_Click(sender As Object, e As EventArgs) Handles btnBalance.Click
Dim Deposit As Double = CDbl(txtDeposit.Text)
Dim APR As Double = CDbl(txtAPR.Text) / 100
Dim MBalance As Double = 0
Dim Balance As Double = APR * MBalance + Deposit
End Sub
End Class