Yeah, thanks guys. @vin, what do you mean I shouldn't compare homeowner to a char? How else would I do it instead of homeowner == 'y'
Also, another issue with my code.
When...
Age = 100
Income = 100000
Assets = 100000
creditScore = 900
homeowner = y
employed = y
My output is loan + 10000 (50000) when it should be loan + 15000 (55000)
Your code is wrong in several places.
+ Line 37
+ Line 49
+ Line 51 : Comparing homeowner to a char
+ Line 56 : Comparing homeowner to a char, but there are more
+ Line 54, 59, 62 : You are printing the same message three times. cout << "Qualified for $" << loan;
Take your time to fix your code. However, even if the program output is correct, that does not necessarily mean your program is correct.
If homeowner is boolean then it can only take values of true (1) or false (0). A char value for homeowner would not be appropriate. Comparing homeowner to a char probably always returns false, or even worse, undefined behaviour.