Input devices are electromagnetic devices that accept data or a set of instructions from the environment around them and then translate that data into machine-readable and intelligible form. Computer…