Computer Science Canada Using counter to go by a calculation(help) |
Author: | tooring [ Thu Jan 04, 2007 4:28 pm ] | ||
Post subject: | Using counter to go by a calculation(help) | ||
I have this assignment and need some help. I have to make an interest program and this is what I have so far. The program should tell the user the investment and interest by what ever compounding period the user chooses. Im having trouble at this, because when I enter 10,12,Q, and 12 I only get 10.30 which is the the investment on the 3rd months. It dosent show that for the first 2 months it should be 10.00. Any help would be good
|
Author: | Ultrahex [ Thu Jan 04, 2007 11:34 pm ] |
Post subject: | |
Whoa... am I confused by your explanation... ok the problem is that it doesnt show each step of the investment ??? like you want 1st Term - 101.25 2st Term - 102.50 3nd Term - 103.75 in output??? or do you not understand the interest rate formulas... which part are you confused about. |
Author: | tooring [ Fri Jan 05, 2007 8:36 am ] |
Post subject: | |
There should be 4 columns. One with the months, which is term in months(user enters) The second with investment for each month (as it goes up) The third with Interest added on each month(as it goes up) The fourth with the total interest gained with investment added on If you are still confused, I can upload the assignment sheet |
Author: | Ultrahex [ Fri Jan 05, 2007 1:53 pm ] | ||
Post subject: | |||
well for the columns your gonna need to use locate and a for loop like so....
just really need to change the output ... might also want to clear screen before writing that to the screen. If your confused about the Math Part also and how to implement that ask for some help on that in this thread and ill get back to you. |
Author: | tooring [ Fri Jan 05, 2007 5:33 pm ] | ||
Post subject: | |||
This is what I have right now. I have to make the investments go up every 3 months by the interest rate, but right now, its just saying 10 all the way. Help please, this is due Monday
|
Author: | tooring [ Fri Jan 05, 2007 5:58 pm ] |
Post subject: | |
Here is the assignment I scanned if it helps you guys help me http://img292.imageshack.us/img292/3323/projectys8.jpg |
Author: | Ultrahex [ Fri Jan 05, 2007 6:02 pm ] |
Post subject: | |
note you are not actually calculating the investment you are just saying it ... you need to calculate the investment at the point in time in your for loop, whether that is in advance and posting later. like calculating the term its in and give the investment at that point in time. |
Author: | tooring [ Fri Jan 05, 2007 6:14 pm ] |
Post subject: | |
Ultrahex wrote: note you are not actually calculating the investment you are just saying it ... you need to calculate the investment at the point in time in your for loop, whether that is in advance and posting later.
like calculating the term its in and give the investment at that point in time. yeah. it has to show the investment at the different parts along the months. can you help me out |
Author: | blade360 [ Mon Jan 08, 2007 7:54 pm ] |
Post subject: | Re: Using counter to go by a calculation(help) |
yes i agree with the people above me |
Author: | Clayton [ Mon Jan 08, 2007 10:11 pm ] | ||
Post subject: | Re: Using counter to go by a calculation(help) | ||
tooring wrote: yeah. it has to show the investment at the different parts along the months. can you help me out aye, but the interest you gain adds on to the total you have already, so say you have a 5% interest rate every three months and you invest 100 dollars to start for 4 years (for 16 times to add the interest). Here is what a table would look like:
hopefully that clears some things up for you. (Note that took me a long time to do ) |