Question
Microsoft Visual Basic 2015 Chapter 7 Case Project Loan Calculator How do I create the right calculation for this loan calculator? #Option Explicit On Option
Microsoft Visual Basic 2015 Chapter 7 Case Project Loan Calculator How do I create the right calculation for this loan calculator? #Option Explicit On Option Infer Off Option Strict Off Public Class MainForm Private Sub exitButton_Click(sender As Object, e As EventArgs) Handles exitButton.Click Me.Close() End Sub Private Sub calcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calcButton.Click Dim Rate As Double Dim Per As Integer Dim NPer As Double Dim PV As Double Dim Principal As Double Dim Interest As Double Dim monthlypayment As Double Rate = ((airComboBox.Text / 100) / 12) NPer = (termComboBox.Text * 12) PV = pTextBox.Text paymentsListBox.Items.Add("Principal " & vbTab & "Interest") For Per = 1 To NPer ' calculate Principle using Financial method Principal = -Financial.PPmt(Rate, Per, NPer, PV) 'interest calculation Interest = Principal * Rate paymentsListBox.Items.Add(Format(Principal, "0.00") & vbTab & Interest) mpTextBox.Text = -Financial.Pmt(Rate, NPer, PV:=Principal) Next End Sub#
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started