← Questions
Task and worker assignment model
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Design and implement Task and Worker classes, then drive them to print the system's state. Tasks and workers are registered with unique IDs. A task starts pending, can be assigned once to a free worker, and is then assigned; a worker holds at most one task at a time. Completing a task marks it done, remembers who did it, and frees the worker for another task. Reject invalid transitions (assigning a busy worker, completing an unassigned task) with clear errors, and print a stable status listing.
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
