Hello, how are yall doing again I had a quick question I am coding a mortgage calulator for my basic programming class 1 I have this so far but Visual C++ 2005 wont debug what am I missing?
//mortgage Calculator
#include <iostream>
#include <cmath>
usingnamespace std;
//declaring variables
float p = 0; /* Loan Amount */
float i = 0; /* Interest Rate APR */
int l = 0; /* Term */
float j = i/(12 * 100); /* Calculate Interest */
int n = l * 12; /* Bumber of Months */
double m = 0; /* Monthly Payment */
int choice = 0
int main()
{
do
{
cout <<"Enter the loan amount:" << endl
cin >> p;
cout << "Enter term of loan:" << endl;
cin >> l;
cout << "The inerest rate is:" <<endl;
cin >> i;
//calculating the mortgage using this formula
m = (p*j)/(1-pow((1+j),-n))
cout << "The monthly payment is: $" << m << endl; //prints out monthly payement
return 0;
}
//mortgage Calculator
#include <iostream>
#include <cmath>
usingnamespace std;
//declaring variables
float p = 0; /* Loan Amount */
float i = 0; /* Interest Rate APR */
int l = 0; /* Term */
float j = i/(12 * 100); /* Calculate Interest */
int n = l * 12; /* Bumber of Months */
double m = 0; /* Monthly Payment */
int choice = 0
int main()
{
do
{
cout <<"Enter the loan amount:" << endl
cin >> p;
cout << "Enter term of loan:" << endl;
cin >> l;
cout << "The inerest rate is:" <<endl;
cin >> i;
//calculating the mortgage using this formula
m = (p*j)/(1-pow((1+j),-n))
cout << "The monthly payment is: $" << m << endl; //prints out monthly payement
return 0;
}