Hey all,

I'm having a bit of trouble (ie. tearing my hair out in frustration) with repetition and selection.

I have to design a program that allows the user to input the amount of money invested into a savings account, the annual percent interest earned, and the length (in years) of the investment, and then calls a function to calculate and display a table of the monthly balances for the account that compounds interest quarterly (ie every three months).

My main problems are, I can't figure out how to display years as months in a table. Eg. if the user entered 0.5 years, how would I get that to display in the table as

-------
length
-------
1
2
3
4
5
6

???

The other problem is that I have no idea how to make it calculate interest on the months it should- ie how do I get it to calculate the interest on the 3rd month, the 6th month, but not the others?

Any help would be infinitely appreciated!

Tarls.