| | |
NEED help ASAp
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2009
Posts: 13
Reputation:
Solved Threads: 0
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;
{
#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;
{
Are you sure if your code compiles, Its your 13th post and The Lack of Code Tags make this program a lot more messier.
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.
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.
![]() |
Similar Threads
- I feel sick... Hard drive not found... need help asap =( (Troubleshooting Dead Machines)
- Extracting folder information with c++ (C++)
- Need Help ASAP.. iMac(blue and white) wont eject the cd (Apple Hardware)
- Need Help ASAP.. iMac(blue and white) wont eject the cd (Troubleshooting Dead Machines)
- Need x86 assembly programmer ASAP ! (Assembly)
- Very New to Java and need help converting cubic inches to cm (Java)
Other Threads in the C++ Forum
- Previous Thread: Need Guidance in Modifying a Program
- Next Thread: runtime error
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





