Following is the Flow Diagram

 

 

flowchart-1

flowchart-2

flowchart-3