BCD rotary switch move in a circle and can stop in several positions. A rotary switch is used to control…