Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Credit Assist v1.1 Our bank needs a tool that will help us in determining credit

ID: 3563205 • Letter: C

Question

Credit Assist v1.1 Our bank needs a tool that will help us in determining credit worthiness of loan applicants. We will enter the following information to Credit Assist program: - Monthly Income (income) - Total Debt (debt) - Monthly minimum payments for the debt (minPay) If total debt is more than 6 months monthly income of the applicant, we cannot grant any loan. Inform user that no loan can be granted. Otherwise, you subtract the minimum monthly debt payment from monthly income. We can allow up to 30% of that amount as loan. credit = (income - minPay) * 0.3 Let user know that the applicant can be approved for upto this (credit) amount. Surround your program with a while loop so that at the end of computing a credit, user has the option to compute credit for another applicant without closing the program. After printing out the result of one applicant, your program should ask if user wants to compute credit worthiness of another applicant. If so, prompts the user to enter information for the new applicant.

Explanation / Answer

#include <iostream>

using namespace std;

int main()
{
char ask;
do{
int mIncome=0,totalDebt=0,minPay=0;
float credit=0.00f;
cout << "Enter monthly income " << endl;
cin>>mIncome;
cout<<"Enter Total debt amount"<<endl;
cin>>totalDebt;
cout<<"Enter the minimum amount payable for a month"<<endl;
cin>>minPay;
if(6*mIncome<totalDebt)
{
cout<<"No Loan cam br granted"<<endl;
}
else
{
credit=(mIncome-minPay)*0.3;
cout<<"Loan can br granted upto "<<credit<<endl;
}
cout<<" Do you want another applicant? y/n?"<<endl;
cin>>ask;
}while(ask=='y' || ask=='Y');
return 0;
} // Compiled and executed. Result is as desired.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote