Boolean Expressions

This chapter introduces relational and logical operators. It also discusses the use of these operators to write Boolean expressions.

16. Student Car Purchase


Answer:

Yes. You have enough credit for the car.

Student Car Purchase

Recall the problem:

You would like to buy a new $25,000 red Miata sports car. You can pay in cash, or you can buy it on credit.

It turns out that you actually have $240 on hand and are an unemployed student majoring in philosophy. The credit manager is unwilling to extend any credit to you.


Question 16:

You have $240 on hand and no credit. Can you buy the $25,000 Miata?