B
B
byreoil2020-02-15 17:03:42
block diagram
byreoil, 2020-02-15 17:03:42

Is it possible to draw a flowchart describing an OOP structure program?

I'm in college, we have a subject "Algorithmics". On it, we go through basic algorithms and their writing in C#. Now we have started a topic related to flowcharts, and we must build them according to our C # code (namely, the code, and not the algorithm itself, as our teacher says) and adhere to GOST 19.701-90. I had a question that the teacher could not give me a clear answer, I did not find the answer in Google. All that the teacher answered me was that you can write a comment on the flowchart.

So, the question itself is: is it even possible to build flowcharts according to object-oriented code, for example, how do I indicate that there will be an exception in this place and there will be two branches of development of events?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2020-02-15
@byreoil

Is it even possible to build flowcharts from object-oriented code?
OOP concepts are more adequately displayed using uml , but not GOST 19.701-90 . you can display the guest execution algorithm for console programs. for forms or wpf in general, it’s the same, but you will have to delve into the event handling mechanism in order for such a block diagram to be correct
how will it indicate to me that there will be an exception in this place and there will be two branches of the development of events?
here the keyword is branching , if you understand where the transfer of control will actually take place in the event of an exception being thrown - there is no problem to display it
ps The exception mechanism itself is not tied to a specific paradigm. and certainly not related to OOP

X
xmoonlight, 2020-02-16
@xmoonlight

one.

specifically to the code, and not according to the algorithm itself, as our teacher says
in general, not quite right: an attempt to kill 3 at once! hares:
  • check that you understand your code,
  • check what you have learned
  • check that you understand the algorithm

First, a block diagram is drawn up according to a known algorithm, then it is encoded, and the operation of the code is tested for compliance with previously known reference results.
2. In block diagrams, there are block-function designations and reference designations.
3. We arrange all events and exceptions as independent handler functions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question