Component diagrams are essentially class diagrams that focus on a systems components that often used to model the static. The behavior is defined in…