<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 12 (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: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";}
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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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=Section1>

<p class=MsoNormal><span style='color:#1F497D'>The code that is relevant for
this is in the second repeat loop: <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Ingredient_ID &lt;- 1<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt'><span style='color:#1F497D'>Repeat
<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ingredient_ID
&lt;- Ingredient_ID + 1<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...
<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...
<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt'><span style='color:#1F497D'>Until
Ingredient_ID = Num_Ingredients<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>We first allocate the value of 1
to ingredient_ID, then straightaway increment ingredient_ID again in the repeat
loop. Effectively, we&#8217;re starting the count at ingredient_ID=2 and have
skipped ingredient_ID = 1. &nbsp;To fix this error (part d), you can either set
the initial line to Ingredient_ID &lt;- 0, or alternatively, move the increment
line at the top of the repeat loop to the end of the loop. <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Regards</span><span lang=EN-US
style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Juliana Pang<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>IT/Maths Teacher</span><span
lang=EN-US style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>East Doncaster
Secondary College</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>20 George Street,
East Doncaster, 3109</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Telephone +61 3 9842
2244<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><a
href="mailto:pang.juliana.c@edumail.vic.gov.au">mailto:pang.juliana.c@edumail.vic.gov.au</a><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</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"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> sofdev-bounces@edulists.com.au
[mailto:sofdev-bounces@edulists.com.au] <b>On Behalf Of </b>EDWARDS. John<br>
<b>Sent:</b> Wednesday, 12 November 2008 1:50 PM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> [Year 12 SofDev] 2007 exam<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Hi Guys,</span><span lang=EN-US style='font-size:12.0pt;font-family:
"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>I was going through the 2007 past paper with a student and had
difficulty with the test data question 3c, in Section C. I have read the
examiner's report but still had difficulty. If anyone has a spare moment (he
laughs) would you be able to have a quick look at it for me.</span><span
lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Many Thanks,</span><span lang=EN-US style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>John Edwards</span><span lang=EN-US style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>-----Original
Message-----<br>
<b>From:</b> sofdev-bounces@edulists.com.au
[mailto:sofdev-bounces@edulists.com.au]<b>On Behalf Of </b>Adrian Janson<br>
<b>Sent:</b> Monday, 8 September 2008 10:40 AM<br>
<b>To:</b> 'Year 12 Software Development Teachers' Mailing List'<br>
<b>Subject:</b> [Year 12 SofDev] U4O2 Janson's Child Care</span><span
lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Hi everyone,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Here is my U4O2 Janson&#8217;s Child Care
test.&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><a
href="http://archive.vitta.org.au/resources/detail.php?doc_id=3491">http://archive.vitta.org.au/resources/detail.php?doc_id=3491</a><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>I have also uploaded my suggested
solutions.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><a
href="http://archive.vitta.org.au/resources/detail.php?doc_id=3492">http://archive.vitta.org.au/resources/detail.php?doc_id=3492</a><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Cheers,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Adrian<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.5pt;font-family:
Consolas'>Adrian Janson, <o:p></o:p></span></b></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.5pt;font-family:
Consolas'>VITTA President<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.5pt;font-family:
Consolas'>Director of ICT, <o:p></o:p></span></b></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Melbourne
High School, <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Forrest
Hill, South Yarra 3141 Australia.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Phone:
03 9826 0711 International: +61 3 9826 0711<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Fax:
03 9826 8767 International: +61 3 9826 8767<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>E-mail:
<a href="mailto:janson.adrian.a@edumail.vic.gov.au">janson.adrian.a@edumail.vic.gov.au</a><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Website:
<a href="http://www.mhs.vic.edu.au">http://www.mhs.vic.edu.au</a><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Blog:
<a href="http://jansona.edublogs.org/">http://jansona.edublogs.org</a><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p><b><span lang=EN-US>Important - </span></b><span lang=EN-US>This email and
any attachments may be confidential. If received in error, please contact us
and delete all copies. Before opening or using attachments check them for viruses
and defects. Regardless of any loss, damage or consequence, whether caused by
the negligence of the sender or not, resulting directly or indirectly from the
use of any attached files our liability is limited to resupplying any affected
attachments. Any representations or opinions expressed are those of the
individual sender, and not necessarily those of the Department of Education and
Early Childhood Development.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'>_______________________________________________
<br>
<a href="http://www.edulists.com.au">http://www.edulists.com.au </a>IT Software
Development Mailing List kindly supported by <br>
<a href="http://www.vitta.org.au/vce/studies/infotech/softwaredevel3-4.html%20%20">http://www.vitta.org.au/vce/studies/infotech/softwaredevel3-4.html</a>
- Victorian Curriculum and Assessment Authority and <br>
<a href="http://www.vitta.org.au">http://www.vitta.org.au </a>- VITTA Victorian
Information Technology Teachers Association Inc <o:p></o:p></span></p>

</blockquote>

<div>

<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US
style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><strong><span lang=EN-US style='font-size:7.5pt;font-family:
"Tahoma","sans-serif"'>Attention:</span></strong><span lang=EN-US
style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'><br>
<em><span style='font-family:"Tahoma","sans-serif"'>The information contained
in this message and or attachments is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.&nbsp; Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any system and destroy
and copies.</span></em><o:p></o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US
style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

</div>

<div class=MsoNormal align=center style='text-align:center'><em><span
lang=EN-US style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></em></div>

<p align=center style='text-align:center'><em><span lang=EN-US
style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'>This e-mail message
has been scanned by </span></em><strong><i><span lang=EN-US style='font-size:
7.5pt;font-family:"Tahoma","sans-serif";color:#FF8000'>MailMarshal</span></i></strong><strong><i><span
lang=EN-US style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'> </span></i></strong><em><span
lang=EN-US style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'>from </span></em><strong><i><span
lang=EN-US style='font-size:7.5pt;font-family:"Tahoma","sans-serif";color:#FF8000'>Marshal
Software</span></i></strong><em><span lang=EN-US style='font-size:7.5pt;
font-family:"Tahoma","sans-serif"'>, an email content filter. </span></em><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'><em><span
lang=EN-US style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></em></div>

<p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'>_______________________________________________
<br>
<a href="http://www.edulists.com.au">http://www.edulists.com.au </a>IT Software
Development Mailing List kindly supported by <br>
<a href="http://www.vitta.org.au/vce/studies/infotech/softwaredevel3-4.html%20%20">http://www.vitta.org.au/vce/studies/infotech/softwaredevel3-4.html</a>
- Victorian Curriculum and Assessment Authority and <br>
<a href="http://www.vitta.org.au">http://www.vitta.org.au </a>- VITTA Victorian
Information Technology Teachers Association Inc</span><span style='font-size:
12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<p></p><p><b>Important - </b>This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.</p>
</body>

</html>