CTSPlanner
Sign-in not configured
Computing Science

CSE2130 Files & File Structures 1

Intermediate · 1 credit · BIT - Business, Admin, Finance and IT

Description
Students learn how to design, code and debug programs that use data files to store and retrieve data on secondary storage devices. Building on their knowledge of derived data structures, they learn how to use those structures to organize data for efficient file handling. As part of this process, they learn what types of problems benefit from the use of external files.
Prerequisite
CSE2120: Data Structures 1
Parameters
Access to appropriate computer equipment, software, support materials, the Internet and a programming environment that encourages modular programming through the use of subprograms.
Supporting courses
CSE2010: Computer Science 2, or any Intermediate project course involving the manipulation and storing of data

Outcomes The student will:

  • 1 analyze and represent the nature, structure and utility of external data files

    • 1.1 identify and illustrate the general characteristics of external data files including:

      • 1.1.1 access methods; e.g., sequential, random, indexed

      • 1.1.2 type of data; e.g., text (encoded in a format such as ASCII code), binary (encoded in binary code)

      • 1.1.3 text files; e.g., data organization, access methods

    • 1.2 explain and represent the client/server relationship that exists between a file using application and the operating system with consideration to:

      • 1.2.1 how programming environments access secondary storage devices

      • 1.2.2 how operating systems handle the actual process of manipulating data in secondary memory

      • 1.2.3 how programming environments request file handling services from the operating system

      • 1.2.4 the use of a file buffer, data stream and file descriptor table

    • 1.3 describe and represent the logical structure of text files including:

      • 1.3.1 sequential text

      • 1.3.2 random-access text files

      • 1.3.3 Indexed Sequential Access Method (ISAM) text files

    • 1.4 describe the main operations associated with text files including:

      • 1.4.1 creating a file buffer or stream

      • 1.4.2 opening an existing file

      • 1.4.3 creating a new file

      • 1.4.4 exporting data to a file

      • 1.4.5 importing data from a file

      • 1.4.6 appending data to a file

      • 1.4.7 closing a file

      • 1.4.8 comparing two files

      • 1.4.9 copying a file

      • 1.4.10 merging two files

    • 1.5 describe and represent the relative advantages of each file type including:

      • 1.5.1 access speed

      • 1.5.2 storage space requirement

      • 1.5.3 difficulty to implement

      • 1.5.4 maintainability

  • 2 create and/or modify algorithms that make effective use of external data files

    • 2.1 use appropriate general design techniques for a specific programming environment

    • 2.2 analyze and decompose the problem into appropriate subsections using techniques appropriate for the chosen design approach

    • 2.3 evaluate subsections and identify any that may require some type of external file capability, based on the nature and amount of the data to be processed and type of processing operations

    • 2.4 identify and use or construct the appropriate external file structure based on:

      • 2.4.1 storage space required

      • 2.4.2 the number and speed of required operations

      • 2.4.3 programmer efficiency

    • 2.5 create sequential and random-access files, as required

    • 2.6 identify and sequence the operations needed to process the data prior to export and/or process the data after import

    • 2.7 test and modify the algorithm using appropriate “fail-on-paper” techniques

  • 3 create and/or modify programs based on appropriate algorithms that make effective use of external data files

    • 3.1 convert algorithms calling for the use of external data files into programs that reflect the algorithm’s design

    • 3.2 use cohesive subprograms with helper subprograms, if required, to hide and/or protect data, and separate the implementation of the file handling code and attendant data structure and operations from its calling modules

    • 3.3 use original (user-created) or built-in, environment supported file handling code segments and their attendant operations appropriate to the data being manipulated

  • 4 compare program operation and outcomes with the intent of the algorithm and modify, as required

    • 4.1 use appropriate error-trapping mechanisms built into the programming environment, as well as programmer-directed error-trapping techniques, to eliminate logic errors and debug the program

    • 4.2 compare the congruency between the outcomes of the debugged program and the original intent of the algorithm and modify both, as required

  • 5 demonstrate basic competencies

    • 5.1 demonstrate fundamental skills to:

      • 5.1.1 communicate

      • 5.1.2 manage information

      • 5.1.3 use numbers

      • 5.1.4 think and solve problems

    • 5.2 demonstrate personal management skills to:

      • 5.2.1 demonstrate positive attitudes and behaviours

      • 5.2.2 be responsible

      • 5.2.3 be adaptable

      • 5.2.4 learn continuously

      • 5.2.5 work safely

    • 5.3 demonstrate teamwork skills to:

      • 5.3.1 work with others

      • 5.3.2 participate in projects and tasks

  • 6 identify possible life roles related to the skills and content of this cluster

    • 6.1 recognize and then analyze the opportunities and barriers in the immediate environment

    • 6.2 identify potential resources to minimize barriers and maximize opportunities

Program of Studies 2009. Source document, © Alberta Education.