It represents how each and every component acts during execution and running of a system program. Introduction to UML 2 Component Diagrams Component…