NEED help ASAp

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2009
Posts: 13
Reputation: southernd0529 has a little shameless behaviour in the past 
Solved Threads: 0
southernd0529 southernd0529 is offline Offline
Newbie Poster

NEED help ASAp

 
-2
  #1
Sep 1st, 2009
i need help writing a program that includes a function that computes future investment value at the given interest rate for a specified number of years. I have started out but do not know what to do next to get this program to work. here wut i have

#include <iostream>
#include <iomanip>
using namespace std;


double futureInvestmentValue(double investmentAmt, double monthlyInterestRate, int years);
int main()
{

double monthlyInterestRate, double investmentAmt;

cout<<"Please enter the investment amount: "<<endl;
cin>>investmentAmt;
cout<<"Please enter the interest rate: "<<endl;
cin>>monthlyInterestRate;
cout<<endl;


system("PAUSE");
return 0;

}

double futureInvestmentValue(double investmentAmt, double monthlyInterestRate, int years)
{
double investmentAmtValue;
int i, array[i];


accumulatedValue= investmentAmount*(1 + monthlyInterestRate) * (years *12)

for (i=0; i > 30;++)
{
array[i]=AccumalatedValue
cout<<array[i]<<endl;
{
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 675
Reputation: Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold 
Solved Threads: 99
Sky Diploma's Avatar
Sky Diploma Sky Diploma is offline Offline
Practically a Master Poster

Re: NEED help ASAp

 
1
  #2
Sep 1st, 2009
Are you sure if your code compiles, Its your 13th post and The Lack of Code Tags make this program a lot more messier.

for (i=0; i > 30;++)
{
array[i]=AccumalatedValue
cout<<array[i]<<endl;
{ //Shouldnt this be '}'

And where is the ending Brace for the function itself.

Apart from all that, I suggest that you get back to a Pen and Paper and precisely think of how you can work out your task. After which you could start out the code.
1. Please Mark Your Thread as Solved After Getting Your Answers.
2. Please Use CODE TAGS .
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 179
Reputation: Nathan Campos is an unknown quantity at this point 
Solved Threads: 6
Nathan Campos's Avatar
Nathan Campos Nathan Campos is offline Offline
Junior Poster

Re: NEED help ASAp

 
0
  #3
Sep 1st, 2009
Only one comment about your post, please use the code tags as the signature of Sky Diploma!

Thanks!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC