Arrays 4 - parallel


examples


Classwork

In a text document:

Think about variable names and types.

1.  Assume you have modules carMakeList, carPriceList, and carColorList which produce parallel arrays for the make, price, and color of cars.  Print all information about all red cars under $25000. 

2. Assume you have modules getTitles and getCheckedOut, which return a list of book titles, and a list of booleans for whether the books are currently checked out.  Print a list of the books that are available (not checked out)