68 lines
7.7 KiB
Plaintext
68 lines
7.7 KiB
Plaintext
<mxfile host="65bd71144e">
|
|
<diagram id="x3mvl7MIxiUfgaiuTItL" name="Page-1">
|
|
<mxGraphModel dx="1346" dy="1840" 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="49" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;labelBackgroundColor=none;strokeColor=#1A1A1A;fontColor=#1A1A1A;" edge="1" parent="1" source="10" target="46">
|
|
<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" (denoted 's')</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, None, 100, 200, 300, 400, None]</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="-600" width="288" height="90" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="48" value="True" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" edge="1" parent="1" source="46" target="10">
|
|
<mxGeometry x="0.0172" y="20" relative="1" as="geometry">
|
|
<Array as="points">
|
|
<mxPoint x="640" y="-250"/>
|
|
<mxPoint x="640" y="-405"/>
|
|
</Array>
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="51" value="False" style="edgeStyle=none;html=1;labelBackgroundColor=none;strokeColor=#1A1A1A;fontColor=#1A1A1A;" edge="1" parent="1" source="46" target="50">
|
|
<mxGeometry y="15" relative="1" as="geometry">
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="46" value="s == None ?" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" vertex="1" parent="1">
|
|
<mxGeometry x="362.5" y="-290" width="125" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="53" value="" style="edgeStyle=none;html=1;labelBackgroundColor=none;strokeColor=#1A1A1A;fontColor=#1A1A1A;" edge="1" parent="1" source="50" target="52">
|
|
<mxGeometry relative="1" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="50" value="<div style="line-height: 24px;"><div style=""><font color="#1a1a1a">inventory = inventory - s</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;" vertex="1" parent="1">
|
|
<mxGeometry x="281" y="-170" width="288" height="90" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="55" value="False" style="edgeStyle=none;html=1;labelBackgroundColor=none;strokeColor=#1A1A1A;fontColor=#1A1A1A;" edge="1" parent="1" source="52" target="54">
|
|
<mxGeometry y="15" relative="1" as="geometry">
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="58" value="True" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;labelBackgroundColor=none;strokeColor=#1A1A1A;fontColor=#1A1A1A;" edge="1" parent="1" source="52" target="56">
|
|
<mxGeometry x="-0.2537" y="10" relative="1" as="geometry">
|
|
<Array as="points">
|
|
<mxPoint x="575"/>
|
|
</Array>
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="52" value="inventory &lt; 0 ?" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" vertex="1" parent="1">
|
|
<mxGeometry x="362.5" y="-40" width="125" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="54" value="<div style="line-height: 24px;"><div style=""><font color="#1a1a1a">print "out of stock"</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;" vertex="1" parent="1">
|
|
<mxGeometry x="370" y="80" width="110" height="90" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="56" value="<div style="line-height: 24px;"><div style=""><font color="#1a1a1a">end</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;" vertex="1" parent="1">
|
|
<mxGeometry x="520" y="80" width="110" height="90" as="geometry"/>
|
|
</mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram>
|
|
</mxfile>
|