(I’m having a hard time solving this. I’m new to this. How would you solve this using C++?)Thank you very much🙏
Write a complete program that determines whether the user qualifies for a loan. To qualify, the user must be at least 18 years old and have at least one of the following: i) credit score at least 700, ii) income strictly greater than $50000, iii) be a home owner. Use || in your if-statement condtion
Here are four sample runs to illustrate. Your output should be exactly the same, given the same inputs.
What is your age? 17
I'm sorry, you must be at least 18 years old to apply for this loan.
What is your age? 18
Are you a home owner? (y/n) n
What is your yearly income? 50000
What is your credit score? 699
I'm sorry you do not qualify for a loan at this time.
What is your age? 18
Are you a home owner? (y/n) y
What is your yearly income? 40000
What is your credit score? 670
Congratulations! You qualify for a loan.
What is your age? 34
Are you a home owner? (y/n) n
What is your yearly income? 34000
What is your credit score? 700
Congratulations! You qualify for a loan.