Ch. 10 Data types and structures

10.1 Data types and records

INTEGER, REAL, CHAR, STRING, BOOLEAN, DATE, ARRAY, FILE

Record structure

Read data from a record structure

Save data to a record structure

10.2 Arrays

10.3 Files

OPENFILE "File1.txt" FOR WRITE
WRITEFILE "File1.txt", EmployeeString
CLOSEFILE "File1.txt"

Write mode is for new files

Append mode is to add a line of text to the end of the existing file

10.4 Introduction to Abstract Data Types (ADT)

ADT is a collection of data and a set of operations on those data

Understanding that a stack, queue and linked list are examples of ADT

Stack

Queue

Linked list

Use them to store data

Describe how a queue, stack and linked list can be implemented using arrays

Stack

Queue

Linked list