Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

the newest gaming computer costs $5000 for 31-inch screen, two 1 TB hard drives,

ID: 3651786 • Letter: T

Question

the newest gaming computer costs $5000 for 31-inch screen, two 1 TB hard drives, a metallic case and
a blazing fast processor. Ten years ago, your grandmother gave you $2500. the money has been in a savings CD that earns compound interest of 7.5% per year. Write a windows application that allows you to enter the amount in savings, the interest rate and number of years. display a listbox object with each year and the amount the entire account is worth at the end of that year. determine whether you have saved enough money for the gaming computer. Non-number and negative values should not be accepted. Debug, and then publish the application. Formula is Amount=Principal(1+Rate), For 10 years of compound interest, this forula should be executed 10 times with the principal increasing to the new amount each year.

Explanation / Answer

Please rate with 5 stars :) I am giving you the basic outline of creating a simple interest program in VB. I am sure that after reading this, you cna write the rest of the amount code and the variable initialization yourself :)

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


If rbSimpleInterest.Checked = True Then

interest = (principal * years * rate) / 100

Else

amount = principal * Math.Pow((1 + rate / 100), years)

interest = amount - principal

End If

txtInterest.Text = interest

End Sub