Hello everyone. Happy New Year. I've been going over last semester's book and have found that I've already allowed the basics to run away! We ended with classes, so I've gone back to just doing exercises with basic functions and I keep getting a linker on this one.:
Takes input for the amount a consumer needs to borrow(in-pocket), the interest rate, and duration of loan in months. Program should calculate the "face value" of loan (with interest) as well as monthly payment. Please excuse my sloppy code, I just don't see this:
#include <iostream>
using namespace std;
double paid_out, rate, time, interest, in_pocket, months, monthly_payment;
double loan_value(double rate, double time, double interest, double in_pocket);
double payment(double monthly, double paid_out);
double loan_value( double rate, double time, double interest, double in_pocket)
{
paid_out = (in_pocket) / (1 - rate * time);
return 0;
}
double payment(double months, double paid_out)
{
monthly_payment = (paid_out / months);
return 0;
}