I have to create a flowchart to a C# programm and I am not very familiar with it. My problem is that I do not know if one should represent variables initialization in a flowchart and if so how should I do it. Second problem is that I am not sure about the correctness of my for loop. Here is the flowchart I created tot a part of the programm. It would be very nice if you can tell me if that is correct and if not what should I correct. Thank you!
asked Jan 8, 2014 at 15:44 121 1 1 silver badge 4 4 bronze badgesFlowcharts are to capture solution logic in a stable/readable form. If this is sufficient for your audience, that is all that matters. Is this for yourself or a different audience? What are the audiences expectations? Is there an established standard that they are expecting?
If it is important to your logic that the variables be initialized, then add a preparation symbol (a wide hexagon) with the initializations. If the variable initializations aren't useful, then ignore them. In this case, it does not look like credit is being used as an accumulator, so it would not be important to initialize it.
Your loop looks fine, but I believe you should have a line from the top loop structure to the bottom. You could also move the exit condition to the bottom loop symbol.