definition is not complete. Some indication must be given about data access. Do not get too excited because Array data access is quite simple. Improved Array Definition An array is a data structure with a fixed number of elements of the same type. element of the array can be accessed directly. The improved array definition indicates that arrays can be accessed directly. How is this accomplished if there are many different values stored in the same data type? Arrays use some unique index or subscript to identify each element in the data structure. The indexing approach is all around us. Streets are arrays of homes. It is not sufficient to state that you live on . You need something like . An airplane contains an array of seats, but flight 512 specifies the flight, not the location where you sit in the plane. A boarding pass will say something like A similar system applies to a football game’s Flight 512, Row 32, Seat D. reserved seat. Your ticket specifies the stadium and date along with the location of the seat. Another way to explain this indexing business is to consider an array of desks in a classroom, more commonly known as a seating chart. Imagine that it is the first school day. Some teacher believes in assigned seats and also wants to be organized. Each student is given an assigned seat number. The teacher's seating chart, for below, is one example. Room J116 [16] [17] [18] [19] [20] Ingrid Darlene Gene Sean Stephanie [11] [12] [13] [14] [15] Blake Michelle Remy Haley [06] [07] [08] [09] [10] Jessica David Anthony Alec [01] [02] [03] [04] [05] Isolde John Greg Maria Heidi
definition is not complete. Some indication must be given about data access. Do not get too excited because Array data access is quite simple. Improved Array Definition An array is a data structure with a fixed number of elements of the same type. element of the array can be accessed directly. The improved array definition indicates that arrays can be accessed directly. How is this accomplished if there are many different values stored in the same data type? Arrays use some unique index or subscript to identify each element in the data structure. The indexing approach is all around us. Streets are arrays of homes. It is not sufficient to state that you live on . You need something like . An airplane contains an array of seats, but flight 512 specifies the flight, not the location where you sit in the plane. A boarding pass will say something like Flight 512, Row 32, Seat D. A similar system applies to a football game’s reserved seat. Your ticket specifies the stadium and date along with the location of the seat. Another way to explain this indexing business is to consider an array of desks in a classroom, more commonly known as a seating chart. Imagine that it is the first school day. Some teacher believes in assigned seats and also wants to be organized. Each student is given an assigned seat number. The teacher's seating chart, for Room J116 below, is one example. [16] Ingrid [17] Darlene [18] Gene [19] Sean [20] Stephanie [11] [12] Blake [13] Michelle [14] Remy [15] Haley [06] [07] Jessica [08] David [09] Anthony [10] Alec [01] Isolde [02] John [03] Greg [04] Maria [05] Heidi