Answer to Question #232424 in C++ for MENSAH PAUL OSEI

Question #232424
Write a a program that determines a bank customer qualifies for a loan.

To qualify, two conditions must exist at least

1. The customer must earn 30,000 per year.
2. The customer must have been employed at his or her current job for at least 2
1
Expert's answer
2021-09-03T00:10:01-0400
#include <iostream>


using namespace std;


int main()
{
    double salary;
    int duration_employed;
    
    cout<<"\nEnter salary per year: ";
    cin>>salary;
    cout<<"\nEnter duration that the customer been employed at his or her current job: ";
    cin>>duration_employed;
    
    if (salary==30000 && duration_employed>=2){
        cout<<"\nThe customer qualifies for a loan";
    }
    else
       cout<<"\nThe does not customer qualifies for a loan"; 
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS