Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 2. Decisions, Decisions

2. Decisions, Decisions

Once you know how to do input, output, and data calculations, you’re on your way to writing real programs. But the most useful programs have behavior: the ability to respond to conditions.

Although they don’t have human judgment, computers do make simple decisions. That’s what this chapter is about. We’ll start by looking at short programs. By the end of the chapter, you’ll have the tools to write a complete game program!


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial