Design of a simple logic circuit of beverage vending machines. Its slot can only put a five cents or a dollar coin. Into 1.5 Yuan coin machines automatically give you a drink. Put two Yuan (two one-dollar) coin, given drinks and locate a pentagonal coin.