Assessment Tool

Lecture 17:  Multidimensional Arrays

Content Tested:  Applications of 2-D arrays

Lecture Content:

Goals:

Assessment Technique:  Application Cards

Purpose:

Instructors can find out how well students understand possible applications of 2-D arrays.

Activity:



We saw how to use 2-D arrays in today's lecture.  Describe possible applications of using 2-D arrays and what information you would store in the array for each application.  Also, if possible, include the dimensions of the 2-D array that would appropriate for each application.

Students may need to see some examples before thinking of an application on their own.  Here are examples of possible applications:

application:  spreadsheet
what to store:  numbers (probably double values)
dimension:  user defined

application:  checkers/chess game
what to store:  numbers reflecting the position of certain pieces (in checkers, 1 might represent red, 2 might represent black, and 0 might represent an empty square)
dimensions:  8 x 8

application:  tic-tac-toe game
what to store:  'o', 'x', or ' ' depending on the current state of the game
dimensions:  3 x 3

application:  2-D matrix from math
what to store:  the values (probably double or int values) of the matrix
dimensions:  same as matrix dimensions

Possible Uses of Activity: