Okay so this is a question for school, I am not expecting someone to give me the full thought out answer, I just need someone to point me in the right direction as I am confused and my tutor is off on holiday.
Here is the question:
In this experiment you will be deriving a controller for a simple machine. The machine is very simple; it is a vending machine that can only accept £1 coins. It can dispense two different items, one costing 67 pence the other costing 52 pence. It has three outputs; one for 10 pence coins, one for 5 pence coins and one for 1 pence coins. Your machine must give change in the minimum number of coins depending on the item selected. The outputs are each a single signal such that if for example three 10 pence coins were needed in the change then the signal must be pulsed three times.
The problem I am having is that whenever I have made a state machine it has always relied on the inputs. So for example if we were going to do a vending machine then an item might cost 50p. So I make all my states go off what a user is putting into the machine, when a 10p goes in then I will go to state "10p" etc.
This example seems to just have 2 inputs (1 each for each item which both accept £1 coin) and then once the pound coin gets put in the machine just does it's thing without relying on the input again. This is seriously confusing me.
Never mind the getting the output the pulse for each coin output. I am seriously confused :(