Say that you enter 56000 for cash and 0 for credit.

A good answer might be:

               
cash   >= 25000     true   

credit >= 25000     false   

Logical Expressions with OR

Here a part of the program:

// check that at least one qualification is met
if ( cash >= 25000 || credit >= 25000 )
  System.out.println("Enough to buy this car!" );
else
  System.out.println("Have you considered a Yugo?" );

For you to have enough to buy the car, JUST ONE relational expression must be true. With enough cash you can buy the car, no matter what your credit. With enough credit you can buy the car, no matter how much cash. The or-operator checks that at least one of

cash   >= 25000 

credit >= 25000

are true before the entire question is true. The entire question must be true in order for the true block to execute.

QUESTION 16:

Look at the program. How will the monitor screen look if the user types 50000 for cash and 75000 for credit?