hi check my work. this no designs tho just black and white
using namespace std;
int main () { double MoNetIncome=0.0; double LoanAmount=0.0; int n=0; double dp=0.0; double assets=0.0; int WorkYears=0; double rate=0.0; char opt='n'; string client=""; double MonthlyLoan; double Property;
loop: cout<<"Name: "; getline (cin,client); cin.ignore(1000,'\n');
cout<<"\nPrevious Credit Problem? (y=yes/n=no): ";
cin>>opt;
if (tolower (opt)=='n')
{
cout<<"\n\n\nMonthly Income: "; cin>>MoNetIncome;
cout<<"\n\n\nLoan Amount: "; cin>>LoanAmount;
cout<<"\n\n\nNo. Of Years Available for Loan: "; cin>>n;
cout<<"\n\n\nDownpayment: "; cin>>dp;
cout<<"\n\n\nNet Assets: "; cin>>assets;
cout<<"\n\n\nWorking Years:"; cin>>WorkYears;
cout<<"\n\n\nInterest Rate: "; cin>>rate;
MonthlyLoan = ((LoanAmount-dp) * pow ((1+rate),n)) / (n*12) ;
Property = LoanAmount;
//screen display
cout<<"\n\nMonthly Loan: "<<MonthlyLoan <<endl <<fixed <<setprecision(2);
cout<<"Property Value: " <<Property <<endl <<fixed <<setprecision(2);
//conditions
if ((MoNetIncome>(4 * MonthlyLoan)) && (dp>=(.15*Property)) && (assets>1000000) && (WorkYears>3))
{
cout<<"Application Accepted!";
goto tryagain;
}//end if conditions
else
{
cout<<"Application Denied!";
goto tryagain;
}//end if condtions
}//end if 'no' option
else
{
cout<<"Application Denied!";
goto tryagain;
} //end else yes option
tryagain:
cout<<"\n\nTry Again? (y=yes/n=no): ";
cin>>opt;
if( tolower(opt)=='n')
{
system("cls");
return 0;
}
else
{
system("cls");
goto loop;
}
system("pause");
return 0;
}