BASIC PROGRAMMING: ONE-DIMENSIONAL ARRAY
CONTENT
- Defining One-dimensional Array
- Operations on an Array
- Review of the (i) FOR-NEXT Statement, WHILE…END Statement, etc.
What is an Array?
An array is a group of data items given the same name for processing. Students’ scores in some subjects, when listed or arranged under a name, constitute an array. OR
An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier. Also arrangement of items of computerized data in tabular form for easy reference and identification is regarded as an array.
Defining One-dimensional Array
An array whose values or items are arranged in only one direction is referred to as one-dimensional array. It is also called a linear list. E.g. [2, 4, 3, 6, 7, 10, 12], [Ade, Ngozi, Zainab, Bello]
Numeric array:
It contain a set of numbers. The set is given a single name and each number in the array is called an element of the array.
- NEW: Download the entire term's content in MS Word document format (1-year plan only)
- The complete lesson note and evaluation questions for this topic
- The complete lessons for the subject and class (First Term, Second Term & Third Term)
- Media-rich, interactive and gamified content
- End-of-lesson objective questions with detailed explanations to force mastery of content
- Simulated termly preparatory examination questions
- Discussion boards on all lessons and subjects
- Guaranteed learning