A lamp is a replaceable component such as an incandescent light bulb, which is designed to produce light…