3.1.1 User Defined Data Types
Sometimes called abstract or custom data types. The textbook breaks down the different types of user-defined data types, including enumerated, pointer, record and set types. Zakon web has a good explanation of User-defined data types- however, the code examples are all in VB. To become familiar with the Python coding for user defined data types see below. The videos from Socratica are clear and add a touch of humour to the explanations.
3.1.1 Problem
A program is to be written to handle data relating to animals kept in a zoo. Write pseudocode to define a record type which could be used to store: animal species, age, number in the zoo, location in zoo.
Using Python create code for the same problem.
3.1.2 File Organisation and Access
Understand the difference between Sequential and Direct/Random Access
https://www.ictlounge.com/html/serial_and_direct_data_access.htm
Key points
Serial and Sequential files are stored in order.
This method is used with tape storage.
Sequential file organisation records are stored in order.
Serial files are also stored in order of time created,
Random access organisation is possible if there is direct access.
3.1.3 Real Numbers and Normalised Floating-Point Representation