Counting undrawn state-event combinations

A ParcelLocker class is designed with a state machine diagram that has 5 states and 6 events. The diagram draws 9 transition arrows. In exactly two places, a pair of arrows leaves the same state on the same event with complementary guards. Every other arrow is the only one for its state and event. The team's policy is that any state-event combination with no drawn transition throws IllegalStateException. How many state-event combinations fall under this policy? Give your answer as a whole number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Implementing Classes Based on Interaction and State Diagrams Questions: