Ch13 Lab

13.4.3. Ch13 Lab#

Build a small task-management simulation.

Requirements:

  • Use a queue for incoming tasks.

  • Use a stack for undo history.

  • Use a dictionary to store task metadata by task ID.

  • Demonstrate adding three tasks, completing two tasks, undoing one action, and looking up one task by ID.

  • Include short comments explaining why each structure was chosen.