B1. Control logic is required for a Drinks vending machine. Each drink costs 50 pence, and the machine accepts 10p, 20p
Posted: Mon May 02, 2022 1:03 pm
B1. Control logic is required for a Drinks vending machine. Each drink costs 50 pence, and the machine accepts 10p, 20p and 50p coins. The coins have to be inserted one at a time, and if the wrong combination of coins is inserted, the coins are returned to the customer. Using the Algorithmic State Machine method, or otherwise: (a) Draw a state diagram of the system [14 Marks] (b) Derive the input, present state, next state and output table [8 Marks] (c) Specify what logic implementation method you would use [3 marks] [Total 25 Marks]