#include #include #include void calculate (double &, double &, double &, double &); void get_info(double &, double &, double &, double &); void print (double, double); void main() { double principal; double length; double low_rate; double high_rate; get_info(principal, length, low_rate, high_rate); calculate (principal, length, low_rate, high_rate); } void get_info(double & principal, double & length, double & low_rate, double & high_rate) { cout<<"what is the ammount of the loan?"<>principal; cout<<"what is the length of the loan in years?"<>length; cout<<"what is the low anual interest rate?"<>low_rate; cout<<"what is the high anual interest rate?"<>high_rate; } void calculate (double & principal, double & length, double & low_rate, double & high_rate) { length *=12; double c; double monthly_payment; cout<<"Annual Interest Rate"<= low_rate) { low_rate /=100; low_rate/=12; c = pow((1+low_rate),length); monthly_payment = (principal*low_rate*c)/(c-1); low_rate*=100; low_rate*=12; print(low_rate,monthly_payment); low_rate +=.25; } } void print(double low_rate, double montly_payment) { cout<