COSC_3P95_Assignment_1/Q3A1COSC3P95.drawio

135 lines
12 KiB
Plaintext
Raw Permalink Normal View History

2023-10-12 20:46:17 -04:00
<mxfile host="Electron" modified="2023-10-11T20:50:58.356Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.0.2 Chrome/114.0.5735.289 Electron/25.8.4 Safari/537.36" etag="GeafdJRvFsd9HXY3d6Qt" version="22.0.2" type="device">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="462" dy="2013" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="YqphevozqqffcnETHiAa-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="YqphevozqqffcnETHiAa-0">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-3" value="Start(data, limit, exceptions&amp;gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="125" y="-30" width="190" height="40" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-6" target="YqphevozqqffcnETHiAa-6">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-6" target="YqphevozqqffcnETHiAa-6">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-6" target="YqphevozqqffcnETHiAa-12">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-6" value="index &amp;lt; len(data)" style="rhombus;whiteSpace=wrap;html=1;shadow=0;fontFamily=Helvetica;fontSize=12;align=center;strokeWidth=1;spacing=6;spacingTop=-4;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="160" y="160" width="120" height="90" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-0" target="YqphevozqqffcnETHiAa-2">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-0" value="index = 0" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="160" y="40" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-0" target="YqphevozqqffcnETHiAa-0">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-2" target="WIyWlLk6GJQsqaUBKTNV-6">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-2" value="filtered_data = 0" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="160" y="90" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-6" value="return filtered_data" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="370" y="175" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-9" value="False" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="300" y="170" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-11" value="True" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="210" y="250" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-12" target="YqphevozqqffcnETHiAa-17">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-12" value="item = data[index]" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="160" y="300" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-17" target="YqphevozqqffcnETHiAa-21">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-35" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-17" target="YqphevozqqffcnETHiAa-34">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-17" value="item in exceptions" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="155" y="370" width="130" height="80" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-21" target="YqphevozqqffcnETHiAa-36">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-39" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-21" target="YqphevozqqffcnETHiAa-38">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-21" value="item &amp;gt; limit" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="150" y="470" width="140" height="80" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-41" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-25" target="YqphevozqqffcnETHiAa-27">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-25" value="add modified_item&amp;nbsp;to filtered_data" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="160" y="700" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-27" target="WIyWlLk6GJQsqaUBKTNV-6">
<mxGeometry relative="1" as="geometry">
<mxPoint x="50" y="200" as="targetPoint" />
<Array as="points">
<mxPoint x="20" y="830" />
<mxPoint x="20" y="205" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-27" value="index = index + 1" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="160" y="800" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-32" value="False" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="150" y="440" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-33" value="False" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="150" y="555" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-43" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-34" target="YqphevozqqffcnETHiAa-25">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="530" y="410" />
<mxPoint x="530" y="730" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-34" value="modified_item&amp;nbsp;= item + &quot;_EXCEPTION&quot;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="370" y="380" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-36" target="YqphevozqqffcnETHiAa-25">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="530" y="510" />
<mxPoint x="530" y="730" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-36" value="modified_item&amp;nbsp;= item * 2" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="370" y="480" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-40" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="YqphevozqqffcnETHiAa-38" target="YqphevozqqffcnETHiAa-25">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-38" value="modified_item = item / limit" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="160" y="610" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-44" value="True" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="300" y="370" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="YqphevozqqffcnETHiAa-45" value="True" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="300" y="470" width="60" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>