The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I would like help for my project ,I want do program calculator monthly payment  for Auto loan and Mortgage loan .I do program but I have wrong calculator for  payment and can you make design for me nice these project meddler project. I used these website http://www.bankrate.com/calculators/mortgages/loan-calculator.aspx for check my job .
I like make monthly payment , amount loan, Interest monthly  and total paymentÂ
and need if have wrong choice skip other question and I want if have under credit score 400 or 850 put invalid number and any answer invalid member skip questionÂ
Â
ThanksÂ
#include <iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
 int choice;
 double Amount_laon, creditscore, monyhlypayment, NumPayments, NumPayment, intrest, AmountPaid;
 const double loanupA500 = 0.425, loanupA600 = 0.325, loanupA700 = 0.275;
 const double loanupM500 = .6, loanupM600 = 0.5, loanupM700 = 0.4;
 const double Auto_loan = 1;
 const double Mortgage_loan = 2;
 cout << "Loan's Stable" << endl;
 cout << "_______________________________________________________________________________________________" << endl;
 cout << "Loan Type              under 500      Up 500          up 600          up 700" << endl;
 cout << "______________________________________________________________________________________________" << endl;
 cout << "1.Auto loan            NOt Approve     4.25%            3.25%           2.75%                  " << endl;
 cout << "2.Mortgage loan        NOt Approve     6.00%            5.00%           4.00%              " << endl;
 cout << "nEnter type of laons <1-2> : ";
 cin >> choice;
 cout << "nEnter Number Your credit Score =";
 cin >> creditscore;
  cout << "nEnter Amount loan you want =";
 cin >> Amount_laon;
 cout << "nhow many yreas =";
 cin >> NumPayment;
 NumPayments = NumPayment * 12;
 switch (choice)
 {
 case 1:
  if (creditscore < 0)
  {
   cout << "n invaild number," << endl;
  }
  else if (creditscore < 500)
  {
   cout << "Not Approve "<<endl;
  }
  else if (creditscore >= 500 && creditscore <600)
  {
   cout << loanupA500 << endl;
   intrest = pow(1 + loanupA500 / 100, 1.0 / 12);
  }
  else if (creditscore >= 600&& creditscore <700)
  {
   cout << loanupA600 << endl;
   intrest = pow(1 + loanupA600 / 100, 1.0 / 12);
  }
  else
  {
   cout << loanupA700 << endl;
   intrest = pow(1 + loanupA700 / 100, 1.0 / 12);
 Â
 }
  monyhlypayment = Amount_laon * pow(intrest, NumPayments) *
   (intrest - 1) /
   (pow(intrest, NumPayments) - 1);
  AmountPaid = monyhlypayment * NumPayments;
  cout << "Monthly Payment: " << monyhlypayment << endl;
  break;
 case 2:
  if (creditscore < 0)
  {
   cout << "n invaild number," << endl;
  }
  else if (creditscore < 500)
  {
   cout << "Not Approve " << endl;
  }
  else if (creditscore >= 500 && creditscore <600)
  {
   cout << loanupM500 << endl;
   intrest = pow(1 + loanupM500 / 100, 1.0 / 12);
  }
  else if (creditscore >= 600 && creditscore <700)
  {
   cout << loanupM600 << endl;
   intrest = pow(1 + loanupM600 / 100, 1.0 / 12);
  }
  else
  {
   cout << loanupM700 << endl;
   intrest = pow(1 + loanupM700 / 100, 1.0 / 12);
  }
 Â
  monyhlypayment = Amount_laon * pow(intrest, NumPayments) *
   (intrest - 1) /
   (pow(intrest, NumPayments) - 1);
  AmountPaid = monyhlypayment * NumPayments;
  cout << "Monthly Payment: " << monyhlypayment << endl;
  system("pause");
  return 0;
 }
  system("pause");
  return 0;
 }
Â
Â
#include <iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
int choice;
double Amount_laon, creditscore, monyhlypayment, NumPayments, NumPayment,
intrest, AmountPaid;
const double loanupA500 = 0.425, loanupA600 = 0.325, loanupA700 = 0.275;
const double loanupM500 = .6, loanupM600 = 0.5, loanupM700 = 0.4;
const double Auto_loan = 1;
const double Mortgage_loan = 2;
cout << "Loan's Stable" << endl;
cout <<
"_______________________________________________________________________________
________________" << endl;
cout << "Loan Type
under 500
Up 500
up 600
up 700" << endl;
cout <<
"_______________________________________________________________________________
_______________" << endl;
cout << "1.Auto loan
NOt Approve
4.25%
3.25%
2.75%
" << endl;
cout << "2.Mortgage loan
NOt Approve
6.00%
5.00%
4.00%
" << endl;
cout << "\nEnter type of laons <1-2> : ";
cin >> choice;
cout << "\nEnter Number Your credit Score =";
cin >> creditscore;
cout << "\nEnter Amount loan you want =";
cin >> Amount_laon;
cout << "\nhow many yreas =";
cin >> NumPayment;
NumPayments = NumPayment * 12;
switch (choice)
{
case 1:
if (creditscore < 0)
{
cout << "\n invaild number," << endl;
}
else if (creditscore < 500)
{
cout << "Not Approve "<<endl;
}
else if (creditscore >= 500 && creditscore <600)
{
cout << loanupA500 << endl;
intrest = pow(1 + loanupA500 / 100, 1.0 / 12);
}
else if (creditscore >= 600&& creditscore <700)
{
cout << loanupA600 << endl;
intrest = pow(1 + loanupA600 / 100, 1.0 / 12);
}
else
{ cout << loanupA700 << endl; intrest = pow(1 + loanupA700 / 100, 1.0 / 12);
} monyhlypayment = Amount_laon * pow(intrest, NumPayments) *
(intrest - 1) /
(pow(intrest, NumPayments) - 1); AmountPaid = monyhlypayment * NumPayments;
cout << "Monthly Payment: " << monyhlypayment << endl;
break;
case 2:
if (creditscore < 0)
{
cout << "\n invaild number," << endl;
}
else if (creditscore < 500)
{
cout << "Not Approve " << endl;
}
else if (creditscore >= 500 && creditscore <600)
{
cout << loanupM500 << endl;
intrest = pow(1 + loanupM500 / 100, 1.0 / 12);
}
else if (creditscore >= 600 && creditscore <700)
{
cout << loanupM600 << endl;
intrest = pow(1 + loanupM600 / 100, 1.0 / 12);
}
else
{
cout << loanupM700 << endl;
intrest = pow(1 + loanupM700 / 100, 1.0 / 12);
}
monyhlypayment = Amount_laon * pow(intrest, NumPayments) *
(intrest - 1) /
(pow(intrest, NumPayments) - 1); } AmountPaid = monyhlypayment * NumPayments;
cout << "Monthly Payment: " << monyhlypayment << endl;
system("pause");
return 0;
system("pause");
return 0; }