#need

15 messages · Page 1 of 1 (latest)

still steeple
#

(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.

rugged skiffBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

restive cape
#

need help asap
translation: I didn't study

still steeple
#

Damn right. Please

indigo plover
#

just some if/else checks? nothing too complex?

still steeple
#

Yeah

indigo plover
#

since you know how to do it, you know what an if/else is

#

if you can't do on cpp directly, use pseudocode first

still steeple
#

My fault no service.mmmh

indigo plover
#

?

#

what do you have rn?

azure jacinth
#

We can't help if you don't show your code

still steeple
#

need

toxic galeBOT
#
dot
We Don't Do Your Homework

Welcome to Together C&C++! We won't do your homework for you, but we are happy to help you learn and point you in the right direction. We can help most if you have a specific question / have started writing the code.

(Please refer to our #rules, 5.)