0
0
Intro to Computingfundamentals~10 mins

Arrays and lists in Intro to Computing - Flowchart & Logic Diagram

Choose your learning style9 modes available
Process Overview

Arrays and lists are ways to store many items together in order. They help us keep things organized, like a row of mailboxes or a shopping list.

Flowchart
Create empty array/list
Yes No
Add item to array/list
Yes No
Use or access items
This flowchart shows how we create an array or list, add items one by one, and then use or access those items.
Step-by-Step Trace - 6 Steps
Step 1: Start and create an empty list
Step 2: Add first item 'apple'
Step 3: Add second item 'banana'
Step 4: Add third item 'cherry'
Step 5: No more items to add, access the second item
Step 6: End process
Diagram
Index:  0       1        2
       +-------+-------+--------+
List: | apple | banana| cherry |
       +-------+-------+--------+
This diagram shows a list with three items. Each item has a position number called an index, starting at 0.
Flowchart Quiz - 3 Questions
Test your understanding
What does the number 1 represent in the list diagram?
AThe position of 'banana' in the list
BThe number of items in the list
CThe size of each item
DThe total length of the list
Key Result
Arrays and lists store items in order, each with a position number starting at zero, making it easy to add and find items.