Buying on Credit

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   hear noise   go to next page

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

Answer:

Yes. You have enough money for the car. But what happened to the cookies?

Buying on Credit

Recall the problem:

You would like to buy a new $25,000 red Miata sports car. To buy the car, you could pay cash for it, or you could buy it on credit.

You might not have $25,000 on hand. The cookie jar seems to be empty. No problem — you can buy on credit, if you qualify.

QUESTION 15:

You have $240 on hand. The credit manager is willing to extend you up to $30,000 of credit. Can you buy the $25,000 Miata?