Due at 4 PM. For assignment due dates see the main schedule on the course webpage. The program must be written and run under python version 3.X.
New Concepts to be applied for the assignment
- File input: reading text information into a 2D list
- Exception handling
- If you want credit for your work: Do not use any pre-created functions/methods unless you are given explicit permission to do so. [Generic list of allowable pre-created code in the form of python libraries] Additional functions allowed for this assignment: len, append, open, close
Only new concepts that need to be applied in the assignment are listed, concepts previously applied in other assignments may be needed in the implementation of your solution.
Critical design requirements
All instructions must be enclosed within the body of a function, you must write at least 2 functions that implement features specific to this assignment. One function should be related to file input and the other should be the start function. Students can implement more than one function for file input if they wish. However, functions implementing features for the previous assignment (e.g. display of the list) isn't included in the count. The functions you write must be properly implemented. No global variables may be employed.
The exceptions to including all code inside the body of a function could include: import statements (not really needed for this assignment), the creation of global constants (e.g. ATTIC = 1), a global debugging flag and the call to the initial start or main function.
You will be penalized heavily if functions are not used or improperly used.
- No functions or a single function employed then the max assignment grade = 2.0 grade points
- In order to qualify as properly implemented the function must include instructions (functionality) that are appropriate to that function (e.g. anything related to the attic should not be implemented in a function that includes functionality for the bedroom) and the functions should not be 'empty' (e.g. it just includes a pass instruction) or a token implementation (e.g. a few output statements or declarations).
In a similar fashion you will be penalized heavily if you define or use global variables (global constants are okay, if you don't know the difference refer to the "Intro programming" lectures covered at the start of the term).