|
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 ORHere a part of the program:
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
are true before the entire question is true. The entire question must be true in order for the true block to execute.cash >= 25000 credit >= 25000 |
QUESTION 16:Look at the program. How will the monitor screen look if the user types 50000 for cash and 75000 for credit? Click Here after you have answered the question |