Programming 1 School of Science, Information Technology and Engineering
Assignment 1 Teaching Period 1 2013 Introduction
This assignment requires you to understand a python program that manipulates some data involving a warehouse ordering system for a group of shoe stores at various locations. Based on this provided code, you are then asked to create a new python program for a different (but similar) system. You are provided with 3 files: This document, A data file, “orders.txt” A Python file, “ordersystemcomplete.py”. The data file and Python file should be downloaded into the same folder. Save your copy of the Python file as system.py, for example, 20119999system.py
Tasks
1) Your first task is to examine the code you have been given. Answer specific questions throughout the assignment in a separate Word document. Marks are awarded according to how well your answers reflect an understanding of the concepts involved. The data file, “orders.txt”, consists of a number of lines (records) each of which have six values (fields) separated by spaces: (Open this file in notepad and have a look at it) A Shoe Style code (e.g. Womens/Mens/Children), The Shoe Type (e.g. Sandals,Runners,Dress,School,Boat), A unique Item Code identifying the particular shoe on order (a string of characters NNNNX), A number representing the shoe size (expected to be between 1 and 13), The price of the pair of shoes, The store address code in one word string (e.g.CentralSquare,City,Mall,Stockland). 2) Using your creativity, think of a similar problem to the shoe warehouse problem. For example, a travel scheduling system, a bus /train/plane services system, a cricket/other sport results system, a sales system. The new system that you will create must be based on a similar approach – a menu providing options, some data in a separate text file (similar to orders.txt) and a number of functions that do simple calculations and printing of selected data from