You may be wondering when arrays are useful. The key idea is that any homogeneous data (data of the same type) is well-suited for storage in arrays. Think for a moment of some information that might lend itself towards storage into an array.
Click here for some array data examples
If you still doubt the usefulness of arrays, consider this. Suppose you are given the task of reading the entire Salt Lake telephone directory in order to provide an on-line lookup service for the directory assistance operators. With the programming skills you have learned thus far, arrays are the only practical way to store and manipulate the thousands and thousands of telephone numbers.
Imagine the alternative: What would it be like if you had to declare a different variable to contain each name and number in the phone book?
Hamlet Project