Topic Review Questions
Portfolio Review 4
<put your name here>
<put the date here>

1. Explain why arrays are useful. Provide a specific scenario where using an
   array would be extremely beneficial to not using an array.
   

2. Although for loops are the most appropriate loop to iterate over the 
   indexes of an array, one can also use a while loop. Write the while loop
   (and any temporary variables you need) to print out the contents of this
   array:

   string colors[] = {"blue", "red", "yellow", "purple", "green", "orange"};


3. Consider the typedef statement covered in Chapter 8. What is it and why is
   it useful? Provide an example that's not from the book.


4. Say I have the following function signature that take an array and its size
   as parameters.

    int sumNumbers(const int *numbers, int size);

   What's the const mean? Hint: make sure you read up about it in Ch. 8.


5. Suppose we want to write software for a local library that helps patrons 
   navigate to the correct shelf holding a book they're looking for. There are
   a total of 100 bookcases, each with 5 shelves. Each shelve holds up to 30
   books. Define a 3D array to represent the bookcases, shelves, and books.
