Загрузка данных


<mxfile host="app.diagrams.net" agent="Mozilla/5.0" version="24.0.0">
  <diagram id="prog2_calc" name="Калькулятор">
    <mxGraphModel dx="1600" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1654" pageHeight="1169" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />

        <!-- ОСНОВНАЯ ПРОГРАММА (main) -->
        <mxCell id="c_ms" value="начало" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="540" y="40" width="130" height="35" as="geometry" />
        </mxCell>
        <mxCell id="c_mi" value="вв. a, b, op" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
          <mxGeometry x="530" y="95" width="150" height="35" as="geometry" />
        </mxCell>
        <mxCell id="c_sw" value="op" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;fontStyle=1;" vertex="1" parent="1">
          <mxGeometry x="560" y="150" width="90" height="45" as="geometry" />
        </mxCell>

        <!-- Ветка 1: Умножение -->
        <mxCell id="c_c1" value="res = f_mult(a, b)" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="100" y="240" width="150" height="35" as="geometry" />
        </mxCell>
        <mxCell id="c_o1" value="выв. res" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="120" y="300" width="110" height="30" as="geometry" />
        </mxCell>

        <!-- Ветка 2: Сложение -->
        <mxCell id="c_c2" value="res = f_add(a, b)" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="290" y="240" width="145" height="35" as="geometry" />
        </mxCell>
        <mxCell id="c_o2" value="выв. res" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="307" y="300" width="110" height="30" as="geometry" />
        </mxCell>

        <!-- Ветка 3: Вычитание -->
        <mxCell id="c_c3" value="res = f_sub(a, b)" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="465" y="240" width="145" height="35" as="geometry" />
        </mxCell>
        <mxCell id="c_o3" value="выв. res" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="482" y="300" width="110" height="30" as="geometry" />
        </mxCell>

        <!-- Ветка 4: Деление -->
        <mxCell id="c_div_chk" value="b = 0" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="670" y="225" width="90" height="40" as="geometry" />
        </mxCell>
        <mxCell id="c_o4_err" value="выв. ошибка" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1">
          <mxGeometry x="655" y="285" width="120" height="30" as="geometry" />
        </mxCell>
        <mxCell id="c_c4" value="res = f_div(a, b)" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="790" y="285" width="140" height="35" as="geometry" />
        </mxCell>
        <mxCell id="c_o4" value="выв. res" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="805" y="340" width="110" height="30" as="geometry" />
        </mxCell>

        <!-- Иначе -->
        <mxCell id="c_def_err" value="выв. ошибка" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="960" y="240" width="130" height="35" as="geometry" />
        </mxCell>

        <mxCell id="c_me" value="конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="540" y="420" width="130" height="35" as="geometry" />
        </mxCell>

        <mxCell id="ec_1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="c_ms" target="c_mi"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ec_2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="c_mi" target="c_sw"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ec_b1" value="op = 1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="c_sw" target="c_c1"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="605" y="205" /><mxPoint x="175" y="205" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_b2" value="op = 2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="c_sw" target="c_c2"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="605" y="205" /><mxPoint x="362" y="205" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_b3" value="op = 3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="c_sw" target="c_c3"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="605" y="205" /><mxPoint x="537" y="205" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_b4" value="op = 4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="c_sw" target="c_div_chk"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="605" y="205" /><mxPoint x="715" y="205" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_def" value="иначе" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="c_sw" target="c_def_err"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="605" y="205" /><mxPoint x="1025" y="205" /></Array></mxGeometry></mxCell>

        <mxCell id="ec_o1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="c_c1" target="c_o1"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ec_o2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="c_c2" target="c_o2"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ec_o3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="c_c3" target="c_o3"><mxGeometry relative="1" as="geometry" /></mxCell>

        <mxCell id="ec_dy" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="c_div_chk" target="c_o4_err"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ec_dn" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="c_div_chk" target="c_c4"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="860" y="245" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_o4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="c_c4" target="c_o4"><mxGeometry relative="1" as="geometry" /></mxCell>

        <mxCell id="ec_end1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="c_o1" target="c_me"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="175" y="390" /><mxPoint x="605" y="390" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_end2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="c_o2" target="c_me"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="362" y="390" /><mxPoint x="605" y="390" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_end3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="c_o3" target="c_me"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="537" y="390" /><mxPoint x="605" y="390" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_end4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="c_o4_err" target="c_me"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="715" y="390" /><mxPoint x="605" y="390" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_end5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="c_o4" target="c_me"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="860" y="390" /><mxPoint x="605" y="390" /></Array></mxGeometry></mxCell>
        <mxCell id="ec_end6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="c_def_err" target="c_me"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1025" y="390" /><mxPoint x="605" y="390" /></Array></mxGeometry></mxCell>

        <!-- ПОДПРОГРАММЫ (снизу) -->
        <!-- f_mult -->
        <mxCell id="cf1_s" value="нач. f_mult(a, b)" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="110" y="480" width="130" height="30" as="geometry" /></mxCell>
        <mxCell id="cf1_r" value="возвр. a · b" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="125" y="525" width="100" height="25" as="geometry" /></mxCell>
        <mxCell id="cf1_e" value="конец f_mult" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="125" y="565" width="100" height="25" as="geometry" /></mxCell>
        <mxCell id="ecf1_1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="cf1_s" target="cf1_r"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ecf1_2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="cf1_r" target="cf1_e"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- f_add -->
        <mxCell id="cf2_s" value="нач. f_add(a, b)" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="295" y="480" width="130" height="30" as="geometry" /></mxCell>
        <mxCell id="cf2_r" value="возвр. a + b" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="310" y="525" width="100" height="25" as="geometry" /></mxCell>
        <mxCell id="cf2_e" value="конец f_add" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="310" y="565" width="100" height="25" as="geometry" /></mxCell>
        <mxCell id="ecf2_1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="cf2_s" target="cf2_r"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ecf2_2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="cf2_r" target="cf2_e"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- f_sub -->
        <mxCell id="cf3_s" value="нач. f_sub(a, b)" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="475" y="480" width="130" height="30" as="geometry" /></mxCell>
        <mxCell id="cf3_r" value="возвр. a - b" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="490" y="525" width="100" height="25" as="geometry" /></mxCell>
        <mxCell id="cf3_e" value="конец f_sub" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="490" y="565" width="100" height="25" as="geometry" /></mxCell>
        <mxCell id="ecf3_1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="cf3_s" target="cf3_r"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ecf3_2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="cf3_r" target="cf3_e"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- f_div -->
        <mxCell id="cf4_s" value="нач. f_div(a, b)" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="655" y="480" width="130" height="30" as="geometry" /></mxCell>
        <mxCell id="cf4_r" value="возвр. a / b" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="670" y="525" width="100" height="25" as="geometry" /></mxCell>
        <mxCell id="cf4_e" value="конец f_div" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=11;" vertex="1" parent="1"><mxGeometry x="670" y="565" width="100" height="25" as="geometry" /></mxCell>
        <mxCell id="ecf4_1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="cf4_s" target="cf4_r"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="ecf4_2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="cf4_r" target="cf4_e"><mxGeometry relative="1" as="geometry" /></mxCell>

      </root>
    </mxGraphModel>
  </diagram>
</mxfile>