Skip to content

Lab 08 Test Case 9_09 #340

@yqlok17

Description

@yqlok17

Summary

Not able to pass this test case as it seems some of my customers are waiting forever.

Description:

Waiting customers are not being served for some reason. From the statistics (screenshots below) it seems that some customers are not being dequeued properly and are waiting forever in the queue as a result (771 + 229 = 1000 compared to my 762 + 229 = 991).

For context, my logic works as such for waiting:

Arrive -> Wait (at Arrive time) -> ContinueWait (at server's next available serve time) -> ContinueWait (at server's next available time, if customer is still in the queue) -> Serve (at server's next available serve time) -> Done (server time + service time) -> Rest (at done time).

I'm not sure what is the issue. Would appreciate any help!

Screenshots

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions