Friday, October 10, 2014

Construct a finite-state machine that models a newspapervending machine that has a door that can...

Construct a finite-state machine that models a newspapervending machine that has
a door that can be openedonly after either three dimes (and any number of othercoins) or a quarter and a nickel (and any number of othercoins) have been inserted. Once the door can be opened,the customer opens it and takes a paper, closing the door.No change is ever returned no matter how much extramoney has been inserted. The next customer starts withno credit.

No comments:

Post a Comment