computer science
posted by James Starr .
When $1000 is deposit at 5% simple interest, the amount grows by $50 each year. When money is invested at 5% compound interest, then the amount at the end of each year is 1.05 times the amount at the beginning of the year. Write a program to display the amounts for 10 years for a $1000 deposit at 5% simple and compound interest. The first few lines displayed in the list box should appear as such:
year Amount Amount
Simple Compound
Interest Interest
1 $1,050.00 $1,050.00
2 $1,100.00 $1,100.00
3 $1,150.00 $1,570.63

computer science 
MathMate
Does the question require you to write a program? What language/tool do you use? Can you tell us where we can be of help?

computer science 
James Starr
I need to write the code in Visual basic 8

computer science 
MathMate
So drag 2 textboxes for the principal and interest rate. Drag a listbox for the output.
Finally, drag a button that displays the word "calculate".
Double click on the button to get to the onClick method.
Inside the onClick method, import the values entered in the two textboxes (principal and interest rate) and start the calculate the accumulated amount with a forloop, and voila!
Give it a try and if you have problems, post where you need help!
Respond to this Question
Similar Questions

Math
Help! Toshiro Hashimoto invested some money at 4.5% simple interest and $1000 more than four times the amount at 6%. His total annual income for one year from interest on the two investments was $801. How much did he invest at each … 
Visual Basic 2008 Programming
Help! I'm not sure how to start or how calculate. This is the project. Using For Next Loops.  When $1000 is deposited at 5 percent simple interest, the amount grows by $50 each year. When money is invented at 5 percent compound interest, … 
math
Sam invested $5000 in a GIC earning 8% compound interest per year. The interest gets added to the amount invested, so the next year Sam gets interest on the interest already earned as well as on the original amount. How much will Sam's … 
Alg2
Help....Help... Suppose you deposit a principal amount of p dollars in a bank account that pays compound interest. If the annual interest rate r (expressed as a decimal) and the bank makes interest payments n times every year, the … 
Alg 2
Suppose you deposit a principal amount of p dollars in a bank account that pays compound interest. If the annual interest rate r (expressed as a decimal) and the bank makes interest payments n times every year, the amount of money … 
College Algebra
A total of $14,000 is invested in 3 accounts earning 3%, 4%, and 5% annual interest. The combined interest for one year is $539. If the amount invested at 5% is three times the amount at 4%, find the amount invested at 3%. 
BEHRIA
A SUM OF $8000 IS INVESTED IN A SAVING ACCOUNT WHICH PAY THE INTEREST AT COMPOUNDED ANNUALLY .IF THE AMOUNT OF IN KEPT ON DEPOSIT FOR 6 YEAR WHAT WILL THE COMPOUND AMOUNT EQUAL? 
Mathcollege
Create a compound interest word problem. Be sure to include the following, leaving one of the variables unknown: The amount of money earned after a certain length of time, A. The amount of money you start with, the principal, P. The … 
algebra
Compound interest word problem. Suppose JJ has $1000 that he invests in an account that pays 3.5% interest compounded quarterly. How much money does JJ have at the end of 5 years? 
Math
A sum of $7260 is invested at 11 1/4 % simple interest for one year. The amount, in dollars, that must be invested at 7 1/2% simple interest for one year to earn the same amount of interest?