<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Fantastic, thanks Chris that works much better. New VB Code below
</span><span style="font-size:10.0pt;font-family:Wingdings;color:#1F497D">J</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;mso-fareast-language:EN-AU">Module</span><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:#2B91AF">Module1</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Dim</span> StudentNo() <span style="color:blue">As</span>
<span style="color:blue">Integer</span> = {1, 125, 250, 375, 500, 625, 750, 875, 999}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Sub</span> Main()<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Dim</span> low <span style="color:blue">As</span> <span style="color:blue">
Integer</span> = 0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Dim</span> high <span style="color:blue">As</span> <span style="color:blue">
Integer</span> = 9<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Dim</span> result <span style="color:blue">As</span> <span style="color:blue">
Boolean</span> = <span style="color:blue">False</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Dim</span> searchnum <span style="color:blue">As</span> <span style="color:blue">
Integer</span> = 375<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Do</span> <span style="color:blue">While</span> low <= high
<span style="color:blue">And</span> result = <span style="color:blue">False</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Dim</span> middle <span style="color:blue">As</span> <span style="color:blue">
Integer</span> = Int((low + high) / 2)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">If</span> StudentNo(middle) = searchnum <span style="color:blue">
Then</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU"> result =
<span style="color:blue">True</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Dim</span> myMessage <span style="color:blue">As</span> <span style="color:blue">
String</span> = <span style="color:#A31515">"Low "</span> & StudentNo(low) & <span style="color:#A31515">
", High "</span> & StudentNo(high) & <span style="color:#A31515">", Mid "</span> & StudentNo(middle)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU"> MsgBox(myMessage, vbOK,
<span style="color:#A31515">"DONE"</span>)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">End</span> <span style="color:blue">If</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">If</span> StudentNo(middle) > searchnum <span style="color:blue">
Then</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU"> high = middle<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Else</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU"> low = middle<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">End</span> <span style="color:blue">If</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Loop</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">End</span> <span style="color:blue">Sub</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;mso-fareast-language:EN-AU">End</span><span style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:blue">Module<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">Damien</span></b><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">
</span></b><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">Atkinson-Buck</span></b><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">Head of Learning Area: Technology/Arts</span><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU"> </span><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"><img width="750" height="2" id="_x0000_i1030" src="cid:image001.png@01CFE347.CCF9A650"></span><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D;mso-fareast-language:EN-AU"><img width="189" height="66" id="_x0000_i1029" src="cid:image005.jpg@01CFE347.CCF9A650"></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">p:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU"> +61 3 9490 3848
</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">e:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">
<a href="mailto:damien.atkinson-buck@ivanhoe.com.au">damien.atkinson-buck@ivanhoe.com.au</a></span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU">
<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">f:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU"> +61 3 9490 3490</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">w:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU">
<a href="http://www.ivanhoe.com.au/">www.ivanhoe.com.au</a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">w:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU">
<a href="http://www.ivanhoe100.com.au/">www.ivanhoe100.com.au</a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU"> Chris
Bucknell [mailto:Chris.Bucknell@haileybury.vic.edu.au] <br>
<b>Sent:</b> Wednesday, 8 October 2014 10:00 PM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> Re: [Year 12 SofDev] DLTV Exam 1<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="color:black">Hi Damien,</span></a><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">I agree with your logic and working (love a bit of VB.NET code). I think that the issue is with the algorithm given (it’s wrong with two errors). This algorithm looks like a binary search but instead of returning
the quotient (from the sum of the low and high divided by 2) and using this as the middle it looks like it uses the remainder for the middle. Hence why you have your oscillating 1 and 125 (you have assumed zero index arrays for the student datasets – who
knows what would happen with non-zero … probably a blue screen of death). The second error is that the low and high values should hold the index position in the array (not the value in that position).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">So if we resolve these the two issues (i.e. 1-use the quotient for generating the middle index value, and 2-use the index of the position of the start and end of the data set in the array) then we’d get something
like:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">(Note: 0 based array – continue the VB feel
</span><span style="font-family:Wingdings;color:black">J</span><span style="color:black">)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Pass<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Position<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Low<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Position<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">High<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.2pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Calculation<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Quotient<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Remainder<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.2pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Position<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Middle<o:p></o:p></span></p>
</td>
<td width="110" valign="top" style="width:82.15pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Student(Middle)<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">Found<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">1<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">0<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">9<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.2pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">(0+9)/2 =<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">4<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">1<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.2pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">4<o:p></o:p></span></p>
</td>
<td width="110" valign="top" style="width:82.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">500<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">False<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">2<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">0<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">4<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.2pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">(0+4)/2=<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">2<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">0<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.2pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">2<o:p></o:p></span></p>
</td>
<td width="110" valign="top" style="width:82.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">250<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">False<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="87" valign="top" style="width:65.15pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">3<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">2<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">4<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.2pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">(2+4)/2=<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">3<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">0<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.2pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">3<o:p></o:p></span></p>
</td>
<td width="110" valign="top" style="width:82.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">375<o:p></o:p></span></p>
</td>
<td width="87" valign="top" style="width:65.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:black">True<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">Good catch on this on Damien.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="color:#80004D;mso-fareast-language:EN-AU">Chris Bucknell</span></b><b><span style="font-size:12.0pt;color:black;mso-fareast-language:EN-AU">
<br>
</span></b><span style="font-size:10.0pt;color:#515964;mso-fareast-language:EN-AU">Head of ICT</span><span style="font-size:12.0pt;color:black;mso-fareast-language:EN-AU"><br>
</span><a href="mailto:Chris.Bucknell@haileybury.vic.edu.au"><span style="font-size:8.0pt;mso-fareast-language:EN-AU">Chris.Bucknell@haileybury.vic.edu.au</span></a><span style="font-size:8.0pt;color:#515964;mso-fareast-language:EN-AU">
<br>
</span><a href="http://www.haileybury.vic.edu.au"><span style="font-size:8.0pt;mso-fareast-language:EN-AU">www.haileybury.vic.edu.au</span></a><span style="font-size:12.0pt;color:black;mso-fareast-language:EN-AU"><br>
<br>
</span><span style="color:black"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU">
<a href="mailto:sofdev-bounces@edulists.com.au">sofdev-bounces@edulists.com.au</a> [<a href="mailto:sofdev-bounces@edulists.com.au">mailto:sofdev-bounces@edulists.com.au</a>]
<b>On Behalf Of </b>ATKINSON-BUCK, Damien<br>
<b>Sent:</b> Wednesday, 8 October 2014 5:51 PM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List (<a href="mailto:sofdev@edulists.com.au">sofdev@edulists.com.au</a>)<br>
<b>Subject:</b> [Year 12 SofDev] DLTV Exam 1<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi folks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> I’m just going through the DLTV Exam and can’t quite figure the answer to the algorithm question 12 below.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-AU"><img border="0" width="750" height="513" id="Picture_x0020_1" src="cid:image006.png@01CFE347.CCF9A650"></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-AU"><img border="0" width="799" height="480" id="Picture_x0020_2" src="cid:image007.png@01CFE347.CCF9A650"></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">My desk produces,
<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Pass<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Middle<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Low<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">High<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Result<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.95pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">StudentNo(Middle)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">1<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">0<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">1<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">999<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">False<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.95pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">1<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">2<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">1<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">0<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">999<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">False<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.95pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">125<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">3<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">0<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">1<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">999<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">False<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.95pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">1<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="128" valign="top" style="width:95.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">4<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">1<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">0<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">999<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">False<o:p></o:p></span></p>
</td>
<td width="128" valign="top" style="width:95.95pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">125<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="766" colspan="6" valign="top" style="width:574.7pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">AND SO ON<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I’ve tried it as vb code below and ended in an infinite loop. Am I missing something blatantly obvious here or can anyone see the fix for this?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">Module</span><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:#2B91AF">Module1</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Dim</span> StudentNo() <span style="color:blue">As</span>
<span style="color:blue">Integer</span> = {1, 125, 250, 375, 500, 625, 750, 875, 999}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Sub</span> Main()<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Dim</span> low <span style="color:blue">As</span> <span style="color:blue">
Integer</span> = 1<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Dim</span> high <span style="color:blue">As</span> <span style="color:blue">
Integer</span> = 999<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Dim</span> result <span style="color:blue">As</span> <span style="color:blue">
Boolean</span> = <span style="color:blue">False</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Dim</span> searchnum <span style="color:blue">As</span> <span style="color:blue">
Integer</span> = 375<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Do</span> <span style="color:blue">While</span> low <= high
<span style="color:blue">And</span> result = <span style="color:blue">False</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Dim</span> middle <span style="color:blue">As</span> <span style="color:blue">
Integer</span> = (low + high) <span style="color:blue">Mod</span> 2<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">If</span> StudentNo(middle) = searchnum <span style="color:blue">
Then</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"> result =
<span style="color:blue">True</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Dim</span> myMessage <span style="color:blue">As</span> <span style="color:blue">
String</span> = <span style="color:#A31515">"Low "</span> & low & <span style="color:#A31515">
", High "</span> & high & <span style="color:#A31515">", Mid "</span> & middle<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"> MsgBox(myMessage, vbOK,
<span style="color:#A31515">"DONE"</span>)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">End</span> <span style="color:blue">If</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"> <span style="color:blue">If</span> StudentNo(middle) > searchnum
<span style="color:blue">Then</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"> high = middle<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Else</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"> low = middle<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">End</span> <span style="color:blue">If</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Loop</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">End</span> <span style="color:blue">Sub</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">End</span><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">Module<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:9.0pt;font-family:"Times New Roman","serif";color:#880231;mso-fareast-language:EN-AU"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:9.0pt;font-family:"Times New Roman","serif";color:#880231;mso-fareast-language:EN-AU"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:9.0pt;font-family:"Times New Roman","serif";color:#880231;mso-fareast-language:EN-AU"><br>
</span></b><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#82002C;mso-fareast-language:EN-AU">Damien</span></b><b><span style="font-size:9.0pt;font-family:"Times New Roman","serif";color:#880231;mso-fareast-language:EN-AU">
</span></b><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#880231;mso-fareast-language:EN-AU">Atkinson-Buck</span></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">Head of Learning Area: Technology/Arts</span><span style="font-size:8.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:EN-AU">
<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt 36.0pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">p:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU"> +61 3 9490 3848</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-AU"><o:p></o:p></span></p>
</td>
<td style="padding:.75pt 36.0pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">e:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">
<a href="mailto:damien.atkinson-buck@ivanhoe.com.au">damien.atkinson-buck@ivanhoe.com.au</a></span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-AU"><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-AU"> <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">f:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU"> +61 3 9490 3490</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-AU"><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">w:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">
</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-AU"><a href="http://www.ivanhoe.com.au"><span style="color:black">www.ivanhoe.com.au</span></a><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">w:</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:EN-AU">
</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-AU"><a href="http://www.ivanhoe100.com.au"><span style="color:black">www.ivanhoe100.com.au</span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><img border="0" width="750" height="115" id="_x0000_i1027" src="cid:image008.jpg@01CFE347.CCF9A650"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-AU">Please consider the environment before printing this e-mail.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><br>
<br>
<br>
<br>
Privacy, Virus and Copyright Warning<br>
<br>
The information contained in this electronic message (e-mail), and any files transmitted with it:<br>
<br>
* is intended for the named recipients only. If you have received this in error, please advise the sender and delete it and any copies immediately;<br>
* Any personal information in this email must be used in accordance with the Privacy Act 1988 and this always applies even if it has been sent to you in error.<br>
* represents the views of the sender and does not necessarily represent the views or formal advice of Ivanhoe Grammar School;<br>
* may be subject to Copyright, so no further use should be made of it without the author's permission.<br>
<br>
The School does not represent or warrant that the email or any files attached do not contain errors or are free from computer viruses or other defects nor does it accept responsibility for any loss or damage resulting directly or indirectly from the use of
the email or any attached files. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:EN-AU"><br>
This email, including any attachments, is confidential. If you are not the intended recipient you must not copy, use, disclose, distribute or rely on this information. If you have received this email in error, please notify the sender immediately by reply email
and delete the email from your system. Confidentiality and legal privilege attached to this communication are not waived or lost by reason of mistaken delivery to you. Haileybury does not guarantee that this email is unaffected by computer virus, corruption
or other defects. Haileybury monitors all incoming and outgoing email for compliance with its IT Policies. ABN: 34 004 228 906</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><o:p></o:p></span></p>
</div>
<br>
<br>
<br>
<br>
Privacy, Virus and Copyright Warning<br>
<br>
The information contained in this electronic message (e-mail), and any files transmitted with it:<br>
<br>
* is intended for the named recipients only. If you have received this in error, please advise the sender and delete it and any copies immediately;<br>
* Any personal information in this email must be used in accordance with the Privacy Act 1988 and this always applies even if it has been sent to you in error.<br>
* represents the views of the sender and does not necessarily represent the views or formal advice of Ivanhoe Grammar School;<br>
* may be subject to Copyright, so no further use should be made of it without the author's permission.<br>
<br>
The School does not represent or warrant that the email or any files attached do not contain errors or are free from computer viruses or other defects nor does it accept responsibility for any loss or damage resulting directly or indirectly from the use of
the email or any attached files.
</body>
</html>