943,866 Members | Top Members by Rank

Ad:
Jan 9th, 2009
0

Plz help me wid this program!! thankss

Expand Post »
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
Last edited by angel1; Jan 9th, 2009 at 9:51 pm.
Reputation Points: 7
Solved Threads: 0
Newbie Poster
angel1 is offline Offline
2 posts
since Jan 2009
Jan 9th, 2009
2

Re: Plz help me wid this program!! thankss

What part do you need help with?
Team Colleague
Reputation Points: 1135
Solved Threads: 171
Super Senior Demiposter
Rashakil Fol is offline Offline
2,478 posts
since Jun 2005
Jan 10th, 2009
0

Re: Plz help me wid this program!! thankss

> 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.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Jan 11th, 2009
-1

Re: Plz help me wid this program!! thankss

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..
Reputation Points: 7
Solved Threads: 0
Newbie Poster
angel1 is offline Offline
2 posts
since Jan 2009
Jan 11th, 2009
-1

Re: Plz help me wid this program!! thankss

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
Attached Files
File Type: zip Bank.zip (19.6 KB, 9 views)
Reputation Points: 28
Solved Threads: 5
Light Poster
BlackSun is offline Offline
46 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: device drivers and such
Next Thread in Computer Science Forum Timeline: formula in Crystal Report 8





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC