Draw a flow diagram for the program.