943,948 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 281
  • C++ RSS
Sep 1st, 2009
-2

NEED help ASAp

Expand Post »
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;
{
Similar Threads
Reputation Points: 6
Solved Threads: 0
Newbie Poster
southernd0529 is offline Offline
13 posts
since Feb 2009
Sep 1st, 2009
1

Re: NEED help ASAp

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.
Reputation Points: 673
Solved Threads: 125
Practically a Posting Shark
Sky Diploma is offline Offline
818 posts
since Mar 2008
Sep 1st, 2009
0

Re: NEED help ASAp

Only one comment about your post, please use the code tags as the signature of Sky Diploma!

Thanks!
Reputation Points: 33
Solved Threads: 6
Junior Poster
Nathan Campos is offline Offline
190 posts
since Jul 2009

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 C++ Forum Timeline: Need Guidance in Modifying a Program
Next Thread in C++ Forum Timeline: runtime error





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


Follow us on Twitter


© 2011 DaniWeb® LLC