Visual Basic: Create an application that calculates and displays three monthly m
ID: 3599450 • Letter: V
Question
Visual Basic: Create an application that calculates and displays three monthly mortgage payments. The application should use the loan amount and annual interest rate provided by the user with terms of 15 years, 25 years, and 30 years. The application should also display the total amount paid at the end of 15 years, 25 years, and 30 years. Comment code with steps. Also: this should have a form included with the application and not done in the form of a module. so .net framework windows app form included as well.
Explanation / Answer
code:
Private Sub Command1_Click()
Dim P As Integer, R As Integer, I As Variant
P = Text1.Text //enter amount
R = Text2.Text // enter rate
I = P * R * 15 / 100 // interest for 15 years
I = P * R * 25 / 100 //interest for 25 years
I = P * R * 30 / 100 //interest for 30 years
Text4.Text = SI // this line repeate for different time and calculate the interest
Text5.Text = P +I //this line repeate for different time and calculate the total amount
End Sub
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.