74 lines
7.0 KiB
Plaintext
74 lines
7.0 KiB
Plaintext
<mxfile host="65bd71144e">
|
|
<diagram id="x3mvl7MIxiUfgaiuTItL" name="Page-1">
|
|
<mxGraphModel dx="1900" dy="2464" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="#ffffff" math="0" shadow="0">
|
|
<root>
|
|
<mxCell id="0"/>
|
|
<mxCell id="1" parent="0"/>
|
|
<mxCell id="42" value="" style="edgeStyle=none;html=1;strokeColor=#1A1A1A;" parent="1" source="10" target="33" edge="1">
|
|
<mxGeometry relative="1" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="10" value="<div style="line-height: 24px;"><div style=""><font color="#1a1a1a">loop through every sale in sales list,</font></div><div style=""><font color="#1a1a1a">get item "sale"</font></div><div style="background-color: rgb(30, 30, 30); font-size: 18px; font-family: &quot;Monaco for Powerline&quot;, &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace;"></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#E6E6E6;fontColor=#050505;strokeColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="281" y="-450" width="288" height="90" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="43" value="" style="edgeStyle=none;html=1;strokeColor=#1A1A1A;" parent="1" source="32" target="10" edge="1">
|
|
<mxGeometry relative="1" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="32" value="<div style="line-height: 24px;"><div style=""><font color="#1a1a1a" style="font-size: 12px;">initialize</font></div><div style=""><div>sales = [100, 200, 100, 200, 300, 400, -1]</div><div><span style="background-color: initial;">inventory = 1000</span><br></div></div><div style="background-color: rgb(30, 30, 30); font-size: 18px; font-family: &quot;Monaco for Powerline&quot;, &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace;"></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#E6E6E6;fontColor=#050505;strokeColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="281" y="-620" width="288" height="90" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="41" value="False" style="edgeStyle=none;html=1;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" source="33" target="34" edge="1">
|
|
<mxGeometry x="-0.3343" y="25" relative="1" as="geometry">
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="45" value="True" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" source="33" target="36" edge="1">
|
|
<mxGeometry x="-0.003" y="20" relative="1" as="geometry">
|
|
<Array as="points">
|
|
<mxPoint x="580" y="-260"/>
|
|
<mxPoint x="580" y="50"/>
|
|
<mxPoint x="520" y="50"/>
|
|
<mxPoint x="456" y="50"/>
|
|
</Array>
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="33" value="end of list" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="363" y="-300" width="125" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="40" value="" style="edgeStyle=none;html=1;strokeColor=#1A1A1A;" parent="1" source="34" target="35" edge="1">
|
|
<mxGeometry relative="1" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="34" value="<div style="line-height: 24px;"><div style="">inventory = inventory - sales[i]</div><div style="background-color: rgb(30, 30, 30); font-size: 18px; font-family: &quot;Monaco for Powerline&quot;, &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace;"></div></div>" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="326" y="-160" width="198" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="38" value="True" style="edgeStyle=none;html=1;strokeColor=#1A1A1A;fontColor=#1A1A1A;labelBackgroundColor=none;" parent="1" source="35" target="36" edge="1">
|
|
<mxGeometry x="0.2" y="14" relative="1" as="geometry">
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="44" value="False" style="edgeStyle=none;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" source="35" target="10" edge="1">
|
|
<mxGeometry x="-0.0049" y="-20" relative="1" as="geometry">
|
|
<Array as="points">
|
|
<mxPoint x="220"/>
|
|
<mxPoint x="220" y="-405"/>
|
|
</Array>
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="35" value="inventory &lt; 0" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="363" y="-40" width="125" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="39" value="" style="edgeStyle=none;html=1;strokeColor=#1A1A1A;" parent="1" source="36" target="37" edge="1">
|
|
<mxGeometry relative="1" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="36" value="print inventory left" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="363.75" y="90" width="123.5" height="50" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="37" value="end" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="363.75" y="190" width="123.5" height="50" as="geometry"/>
|
|
</mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram>
|
|
</mxfile>
|