Week 6 – Term 2 2018

Learning Objective: to know the different file formats that exist for data input and storage.

Theory:

We’ll be looking at how programming languages handle input and output both within program logic as well as within storing data to files. This theory covers the characteristics of data as well as how to handle and manage files. Specifically we’ll be comparing CSV files to XML files.

You will also receive a practice SAC this week for our SAC next Wednesday.

Programming:

  1. Modify the Python code demonstrated in class to add three more books to the library.xml file.
  2. Modify the Python code demonstrated in class to handle displaying different editions of books from the library.xml file.

The XML file is “library.xml” and can be downloaded from Compass Resources.

Homework:
Programming: Complete the task above. Due: Tue, 29th May, 2018.