7. Using arrays
What you will learn
You might find this surprising, but you’ve already learned most of what you need to know to tell a computer what to do. You can write a program that stores items of data, makes decisions based on data values, and repeats behaviors as long as particular conditions are true. These are the fundamentals of programming, and all programs are built on these core capabilities.
However, there is one more thing you need to know before you can write most any kind of program. You have to understand how to manage large amounts of data in your programs. In this chapter, you’ll learn how to work with “collections” of data ...