Jump to content

Programming Fundamentals/Arrays

From Wikibooks, open books for an open world

Overview

[edit | edit source]

This chapter introduces arrays, which may be referred to as lists in some programming languages. Arrays are used for data structures and are able to store an arrangement of elements. Various versions of arrays will be introduced for use in different scenarios. All arrays will be the same data type and capable of working with functions and other variables, as we will learn throughout the chapter.

Chapter Outline

[edit | edit source]

Learning Objectives

[edit | edit source]
  1. Understand key terms and definitions.
  2. Identify static and dynamic arrays and the code structures necessary to process each type.
  3. Identify single-dimension arrays and multi-dimensional arrays and the code structures necessary to process each type.
  4. Given example pseudocode, flowcharts, and source code, create a program that uses arrays or lists to solve a given problem.