"A capacitor is a device that can store charge."Apart from resistors and inductors, it is the other basic component commonly…