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

Look at the code at the top. And answer the question for the application at the

ID: 3606556 • Letter: L

Question


Look at the code at the top. And answer the question for the application at the bottom.
Please you have to know about Visual Studio to understand it. Do not give me wrong answers be informed about Visual Studio in Computer Science Please Chapter 5 How to code control structures 171 The code for the event handlers in the Future Value application Private Sub btnCalculate Click(sender As object, e As EventArgs) Handles btnCalculate.click Dim monthlyInvestment As Decimal - cDec(txtMonthlyInvestment.Text) Dim yearlyInterestRate As Decimal CDec (txtInterestRate.Text) Dim years As Integer CInt (txtYears.Text) Dim monthlyInterestRate As Decimal yearlyInterestRate 12 100 Dim months As Integer years * 12 Dim futureValue As Decimal for i As Integer " 1 To months futurevalue = (futurevalue + monthly!nvestment) * (1 + monthlyInterestRate) Next txtFutureValue.Text FormatCurrency(futureValue) txthonthlyInvestment.Select ) End Sub Prlvate Sub btnExit cliek(sender As object, e As EventArga) Handles btnkxit.cliek Me.Close) End Sub Description This application uses a For loop to calculate the future value of a monthly invest- ment amount. For this calculation to work correctly, all of the variables that it uses must be converted to the same time period. In this code, that time period is months time through the For loop, the assignment statement adds the monthly invest- ment amount to the future value, which starts at zero. Then, this sum is multiplied by I plus the monthly interest rate. The result is stored in the future Value variable o it can be used the next time through the loop.

Explanation / Answer

1. The for loop executed for 12 times as the value of month is 1 and is multiplied by 12

2.

3.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote