You are not sending the variables to your function. I fixed getPrice and calcMonPayment. You need to do the same for the others.
Hope this helps.
CODE
float getPrice();
float calcMonPayment(float price, float downPayment, float tradeIn, float interestRate);
int main()
{
// main's variables
float price; // this is the main price which is not the same one in getPrice
float downPayment;
float tradeIn;
float interestRate;
float monPayment;
//Function Calls
float price = getPrice();
getDownPayment();
getTradeIn();
getInterestRate();
monPayment = calcMonPayment( price, downPayment, tradeIn, interestRate);
cout << "The monthly payment of the vehicle is: " << monPayment << endl;
cin.get();
}
float getPrice()
{
float price;
cout << "Please enter the price of the vehicle: " << endl;
cin >> price;
cout << fixed << setprecision(2) <<price << endl;
cin.get();
return(price); // you have to return the price
}
float calcMonPayment(float price, float downPayment, float tradeIn, float interestRate)
{
//float price; // these are passed in, not declared here
//float downPayment;
//float tradeIn;
//float interestRate;
float loanAmt;
float annualIntRate;
float annualIntPercent;
float monIntRate;
int noMonths;
float monPayment;
annualIntRate = interestRate;
monIntRate = (annualIntRate/12.0);
annualIntPercent = (annualIntRate*100.0);
loanAmt = (price - downPayment-tradeIn);
monPayment = (loanAmt*monIntRate)/(1.0-(1+monIntRate)-noMonths)
// this line should be in main
//cout << "The monthly payment of the vehicle is: " << monPayment << endl;
return(monPayment);
}