Diagram generator

Program:

Diagram