this is what i have thus far and to no avail i have yet to figure out how to write the last bit of this algorithm included after my source code any help is good help at this point i think im just making it worse the more i try im sure its something easyer then what im trying to do..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int amount, newAmount, intevpludrestRate;
cout <<"Please enter the dollar amount."<<endl;
cin>> amount;
cout <<"Please enter the interest rate(e.g., nine percet should be entered as 9.0). "<<endl;
cin>> interestRate;
return 0;
}
|
algorithm i have to work with.
// Start
// Declarations
// num amount
// num newAmount
// num interestRate
// output "Please enter the dollar amount. "
// input amount
// output "Please enter the interest rate(e.g., nine percet should be entered as 9.0). "
// input interestRate
// newAmount = FutureValue(amount,interestRate)
// output "The new dollar amount is ", newAmount
// Stop
//
//
//
// num FutureValue(num initialAmount, num interestRate)
// Declarations
// num finalAmount
// finalAmount = (1 + interestRate/100) * initialAmount
// return finalAmount
i think i have everything ok but beyond the point i stopped at i am lost what i have is error free at least ;/