Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone help me please why my code is not running Future Value Goal Monthly Investment Yearty Interest Rate: Future Goal Amount: Number of Months

image text in transcribed
image text in transcribed
can someone help me please why my code is not running
Future Value Goal Monthly Investment Yearty Interest Rate: Future Goal Amount: Number of Months Number of Years Calculate Emor List Entire Solution - 4 En 1 Warning 0 of 6 Messages My Build IntelliSense Code Description 3 50103 The name thumberland does not exist in the current content 050128 A local variable or function named 'decfutureGoalAmount is already defined in this scope B3 010) The same timberOfers does not exist in the current context 3050121 A local anable or function named Number of years' is already defined in this scope 50219 The variable decubeGoal Amount is assigned but its value is never used O Type here to search De P9 W sumary> 11/ In ordre to function the code properly and calculate my values Il !!! !!! private void bt calculate_Click(object sender, EventArgs e) decimal dec MonthlyInvestment - Convert.ToDecimal(txt MonthlyInvestment); decimal dec Yearly InterestRate - Convert.ToDecimal(text YearlyInterestRate.Text) / 100; decimal decFutureboalamount - Convert.ToDecimal(txtFutureGoal.Text) int intimberof Months - Convert.ToInt32(txtmonths.Text); // this will change my number of sonths to integer value int Intimberof Years Convert.ToInt32(txtNumberof Years.Text); I am trying to convert wy number of years to the 1/Processing: decimal decutoalamount ; decimal dechonthlyInterestRate - dec Yearly InterestRate 12; int in Number of months - intuberof Years - 12; // because integer does not need decimal int interfers - Intuberof Years - 12; // lam trying to convert years to Integer value" txtFutureGoal.Text = decfutureGealAmount. Testring(""); int i = 0; //this is a counter variable. when the counter exceeds our wax //periods, we stop repeating while ( inthumber of Months) number of decfuture Value - (decfutureValue. dechonthlyInvestment) - (1. dechonthlyInterestitate) // Infinity while loop can run either 1 or multiple times 1/int i = 0; for (int i = 0; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

Students also viewed these Databases questions

Question

Did the team members feel that their work mattered

Answered: 1 week ago

Question

3. What may be the goal of the team?

Answered: 1 week ago