14. Buying a Car with Cash


Answer:

Yes, since the expression involves calling two methods and also uses an assignment operator.

    Buying a Car with Cash

    You would like to buy a $25,000 red Miata sports car. To pay for the car you need either enough cash or enough credit.

    Let us ignore the possibility of combining cash and credit.

    redMiata



    Question 14:

    You found $34,951 in your cookie jar. Can you buy the $25,000 Miata?