Answer the following questions. Bring hardcopies of your answers to class; either hand written or printouts. All homeworks are due before class on the due date. You may use one of the collaborative options as specified on the syllabus, but any help not allowed by that policy will be an honor code violation.
Use test driven design to add the following functionalities, in this order.
First create a failing test for the next functionality, modify the class until the test passes, then perform any refactoring needed. Repeat until all of the required functionality has been added to your stack and all tests pass. Remember that in TDD, the tests determine the requirements. This means you must encode decisions about the functions (for example, exception handling) in automated tests before modifying the software. Submit printouts of all tests, your final version of the stack, and a screen shot showing that all tests pass.
Most importantly, include a narrative describing each TDD test created, the
changes needed to make it pass, rnd any refactoring that was necessary.