hi ppl...
can u please help me with this program.. i dont get how to do it. I tried hard but dont' get it.!
thanks
Suppose that $ 1000 is deposited in a bank account that pays interest at the rate of 8%. if interest is paid annually, at the end of each year 8% of the amount currently in the account is added to the amount. write a program to complete the table shown below.
this is the table:
time(years) Amount in account (dollars)
0 1000.00
1 1080.00
. .
. .
. .
50 .

THankss in advancee for help:)

What part do you need help with?

> i dont get how to do it. I tried hard but dont' get it.!
Which part?
The counting of years from 1 to 50 part?
Or the adding 8% part?

Post your best effort so far.

well.. my teacher told me to use WHile loops wid this program..
I don't understand what While loop is and how do i use it with this program..

commented: So you're saying you haven't paid attention in class at all and want someone to write this for you. -3

hi

int counter=1;
float interest;
float deposite = 1000;
while (counter<= 50)
{
interest = deposite * 0.8f;
deposite +=interest;
Console.WriteLine(counter.ToString() + "={0}", deposite.ToString());
counter++;
}
Console.ReadLine();
}

bye

commented: Don't do people's homework for them; use code tags; your solution's broken. -1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.