labs
This is an old revision of the document!
Weekly Lab Exercises
Week 2 (May 28)
-
- After following the video, you are asked to complete the contracts, implementations, and tests for both BOOK and GENERIC_BOOK classes.
- You are also asked to try with all the four possible implementations (i.e., two ARRAY's, two LINKED_LIST's, a HASH_TABLE, and a collection of RECORD) for the mappings between names and records.
- Tutorial Video for Exercise 2 -- Applying Information Hiding to an Online Shopping System (supplement document)
- After following the video, you are asked to complete the contracts, implementations, and tests for both GOOD_CART and GOOD_SHOP classes.
- You are also asked to try with both of the possible implementations (i.e., an ARRAY, a LINKED_LIST) for representing the cart orders.
Week 1 (May 21)
Exercise 1
- Follow closely with:
Exercise 2:
- Download and unzip a version of the bank project.
- Compile the project.
- Run Workbench System (described above)
- All tests should fail!
- This is because the implementation and contracts (pre- and post-condition, and invariants) are missing.
- Complete all the missing implementations and contracts.
- Use breakpoints and the debugger to identify the bugs, if any.
- Repeat until you can pass all tests.
labs.1433037896.txt.gz · Last modified: 2015/05/31 02:04 by jackie