<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body dir="auto">
<div>Hi all,</div>
<div><br>
</div>
<div>I just got off the phone with the copyright</div>
<div>agency! I have two visual basics books from</div>
<div>2002 designed for software development.</div>
<div>They were originally an Arthur Anderson book</div>
<div>Published by emerald city books in Malvern!</div>
<div><br>
</div>
<div>They have a lot of good algorithms in there</div>
<div>To do with sorting and searching. I thought</div>
<div>it would be a good exercise for my SD kids,</div>
<div>to rewrite the algorithms from the old VB</div>
<div>std to <a href="http://vb.net">vb.net</a> 2010! I am quite happy to put the</div>
<div>Algorithms in a doc and email to the list,</div>
<div>if anybody thinks them worthwhile! I have</div>
<div>been told by copyright in Sydney that they</div>
<div>have nothing on record and that if I have</div>
<div>made a genuine attempt to contact all</div>
<div>parties without success I am in the clear.</div>
<div><br>
</div>
<div>Stephen </div>
<div><br>
Sent from my iPhone</div>
<div><br>
On 30 Apr 2014, at 12:59 pm, "Kevork KROZIAN" <<a href="mailto:kkrozian@ringwoodsc.vic.edu.au">kkrozian@ringwoodsc.vic.edu.au</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div><style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Consolas}
@font-face
        {font-family:NimbusRomNo9L-Regu}
@font-face
        {font-family:CMMI10}
@font-face
        {font-family:CMR10}
@font-face
        {font-family:CMSY10}
@font-face
        {font-family:NimbusMonL-Regu}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0cm;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Times New Roman","serif"}
span.balloontextchar0
        {font-family:"Tahoma","sans-serif"}
span.emailstyle20
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.emailstyle21
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.emailstyle22
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.emailstyle23
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.emailstyle24
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle28
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle29
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Folks,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> I know VB is the overwhelming language of choice for SD teachers. Whilst we have some resources for
<a href="http://VB.NET">VB.NET</a> programming at <a href="http://www.edulists.com.au/sofdev/index.htm">
http://www.edulists.com.au/sofdev/index.htm</a> , wouldn’t it be wonderful if we could get perhaps a graduated set of worksheets/lessons/tasks that could be shared by others especially those who are struggling and would love some help ?</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am more the PHP, Java, C# type of person and don’t have a ready made set of tasks to pass on in VB , but since around 90% of teachers do choose VB, perhaps some could help to make Victoria’s and others’ lives
a little more manageable when faced with something as challenging as a new Yr 12 course and no programming practice for many years.
</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kind Regards</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Kevork Krozian</span></p>
<p class="MsoNormal"><span style="color:#1F497D">IT Pathways Manager</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Ringwood Trade Training Facility
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Tel: 0419 356 034</span><span style="color:#1F497D"></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> <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>Howard, David<br>
<b>Sent:</b> Wednesday, 30 April 2014 11:16 AM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> Re: [Year 12 SofDev] Programming Help</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black">There are great courses on Codecademy and
<a href="http://Lynda.com">Lynda.com</a></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="540" style="width:405.0pt; background:white">
<tbody>
<tr>
<td style="border:none; border-bottom:solid #C50C1E 1.0pt; padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#02437D">David Howard</span></strong><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#02437D"><br>
</span><span style="font-size:8.5pt; font-family:"Arial","sans-serif"; color:#C50C1E">Head of Learning Systems</span><span style="font-size:9.0pt; font-family:"Arial","sans-serif"; color:black"></span></p>
</td>
<td nowrap="" style="border:none; border-bottom:solid #C50C1E 1.0pt; padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:9.0pt; font-family:"Arial","sans-serif"; color:black"><a href="http://twitter.com/StMichaelsGS"><span style="color:navy; text-decoration:none"><img border="0" id="_x0000_i1025" src="https://services.stmichaels.vic.edu.au/community/icons/Icon_Twitter.png"></span></a> <a href="https://services.stmichaels.vic.edu.au/fb.cfm"><span style="color:navy; text-decoration:none"><img border="0" id="_x0000_i1026" src="https://services.stmichaels.vic.edu.au/community/icons/Icon_FB.png"></span></a> <a href="https://www.linkedin.com/company/st-michael%27s-grammar-school"><span style="color:navy; text-decoration:none"><img border="0" id="_x0000_i1027" src="https://services.stmichaels.vic.edu.au/community/icons/Icon_LinkedIn.png"></span></a></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size:7.5pt; font-family:"Arial","sans-serif"; color:#02437D">25 Chapel Street, St Kilda VIC 3182 Australia</span></strong><span style="font-size:9.0pt; font-family:"Arial","sans-serif"; color:black"></span></p>
</td>
<td rowspan="2" valign="top" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:9.0pt; font-family:"Arial","sans-serif"; color:black"><a href="https://www.stmichaels.vic.edu.au/"><span style="color:navy; text-decoration:none"><img border="0" width="113" height="75" id="_x0000_i1028" src="https://services.stmichaels.vic.edu.au/community/logo/SMGS_Logo_tall_100_2013_96d.png"></span></a></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:.75pt .75pt .75pt .75pt">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="353" style="width:264.75pt">
<tbody>
<tr>
<td width="13" nowrap="" style="width:9.75pt; padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size:7.5pt; font-family:"Calibri","sans-serif"; color:#02437D">t</span></strong><span style="font-size:7.5pt; font-family:"Times New Roman","serif"; color:#02437D"></span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:7.5pt; color:#02437D">+61 3 8530 3272 </span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size:7.5pt; font-family:"Calibri","sans-serif"; color:#02437D">e</span></strong><span style="font-size:7.5pt; color:#02437D"> </span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:7.5pt; color:#02437D"><a href="mailto:dhoward@stmichaels.vic.edu.au"><span style="color:#02437D; text-decoration:none">dhoward@stmichaels.vic.edu.au</span></a></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size:7.5pt; font-family:"Calibri","sans-serif"; color:#02437D">f</span></strong><span style="font-size:7.5pt; color:#02437D"></span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:7.5pt; color:#02437D">+61 3 9510 3161</span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size:7.5pt; font-family:"Calibri","sans-serif"; color:#02437D">w</span></strong><span style="font-size:7.5pt; color:#02437D"></span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:7.5pt; color:#02437D"><a href="https://www.stmichaels.vic.edu.au/"><span style="color:#02437D; text-decoration:none">stmichaels.vic.edu.au</span></a></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:6.5pt; font-family:"Arial","sans-serif"; color:#02437D">CRICOS Provider 00345G</span><span style="font-size:9.0pt; font-family:"Arial","sans-serif"; color:black"></span></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:6.5pt; font-family:"Arial","sans-serif"; color:#02437D">Please consider the environment before printing this email</span><span style="font-size:9.0pt; font-family:"Arial","sans-serif"; color:black"></span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Victoria Farrell <<a href="mailto:FarrellV@humegrammar.vic.edu.au">FarrellV@humegrammar.vic.edu.au</a>><br>
<b>Reply-To: </b>Year List <<a href="mailto:sofdev@edulists.com.au">sofdev@edulists.com.au</a>><br>
<b>Date: </b>Wednesday, 30 April 2014 10:51 am<br>
<b>To: </b>Year List <<a href="mailto:sofdev@edulists.com.au">sofdev@edulists.com.au</a>><br>
<b>Subject: </b>Re: [Year 12 SofDev] Programming Help</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Hi Kevork</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">In SD I’m using VB, but I have a Computer Club for all students who want to participate in various activities. I am more familiar with Small Basic, so I have been teaching the other classes SB as I thought it’s
a good introduction.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Any suggestions for programming short courses would be appreciated – as I spend hours of my time updating my skills in everything else and teaching myself programming is proving too difficult.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Vic</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></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"; color:black">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:black">
<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>Kevork KROZIAN<br>
<b>Sent:</b> Wednesday, 30 April 2014 9:16 AM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> Re: [Year 12 SofDev] Programming Help</span><span style="color:black"></span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black"> </span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">Hi Victoria</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black"> </span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">What language are you using in your course ?</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black"> </span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">Kevork </span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black"> </span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black"> </span><span style="color:black"></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt; font-family:"Times New Roman","serif"; color:#575757">Sent from my Samsung GALAXY S4 on the Telstra 4G network</span><span style="color:black"></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black"> </span><span style="color:black"></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">-------- Original message --------</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">From: Victoria Farrell
</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">Date:30/04/2014 7:51 AM (GMT+10:00)
</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">To: Year 12 Software Development Teachers' Mailing List
</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">Subject: Re: [Year 12 SofDev] Programming Help
</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black"> </span><span style="color:black"></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Thank you SO MUCH Peter, this has helped a lot!!!</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Vic</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></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"; color:black">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:black"><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>Coventry, Peter J<br>
<b>Sent:</b> Tuesday, 29 April 2014 7:06 PM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> Re: [Year 12 SofDev] Programming Help</span><span style="color:black"></span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">The program you have is slightly different in its intentions – it asks for a number
<i>n</i> and then generates the first <i>n</i> prime numbers.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">However it could be adapted fairly easily by modifying the exit condition for the loop. (i.e. the program would ask for the last number and then check if Num=n to exit MainLoop. The Ender section would print
Array.GetItemCount(Prime)</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ve added some comments to the program to hopefully explain how it works.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Disclaimer: I don’t teach SD, and don’t really know Small Basic – I did a fair bit of programming in another life and still enjoy the occasional dabble.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Peter</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></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"; color:black">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:black"><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>Victoria Farrell<br>
<b>Sent:</b> Tuesday, 29 April 2014 8:27 AM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> [Year 12 SofDev] Programming Help</span><span style="color:black"></span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Hi,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Very new to Software Development and it’s been 20 odd years since programming at Uni, I could use some help with a problem.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I recently had students involved in the Melbourne University Programming Competition and had problems with solving the following question:</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">A positive integer
</span><span style="font-family:CMMI10; color:black">x > </span><span style="font-family:CMR10; color:black">1
</span><span style="font-family:NimbusRomNo9L-Regu; color:black">is a prime if its only factors are
</span><span style="font-family:CMR10; color:black">1 </span><span style="font-family:NimbusRomNo9L-Regu; color:black">and
</span><span style="font-family:CMMI10; color:black">x</span><span style="font-family:NimbusRomNo9L-Regu; color:black">. Hence the numbers
</span><span style="font-family:CMR10; color:black">2</span><span style="font-family:NimbusRomNo9L-Regu; color:black">,
</span><span style="font-family:CMR10; color:black">11</span><span style="font-family:NimbusRomNo9L-Regu; color:black">, and
</span><span style="font-family:CMR10; color:black">101 </span><span style="font-family:NimbusRomNo9L-Regu; color:black">are primes, but
</span><span style="font-family:CMR10; color:black">1</span><span style="font-family:NimbusRomNo9L-Regu; color:black">,
</span><span style="font-family:CMR10; color:black">9</span><span style="font-family:NimbusRomNo9L-Regu; color:black">,</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">and
</span><span style="font-family:CMR10; color:black">1001 </span><span style="font-family:NimbusRomNo9L-Regu; color:black">are not prime*.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">The input to your program is a single positive integer
</span><span style="font-family:CMMI10; color:black">n</span><span style="font-family:NimbusRomNo9L-Regu; color:black">. The output should be the number of primes that are
</span><span style="font-family:CMSY10; color:black">_ </span><span style="font-family:CMMI10; color:black">n</span><span style="font-family:NimbusRomNo9L-Regu; color:black">.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">For example, if the input is
</span><span style="font-family:NimbusMonL-Regu; color:black">1000 </span><span style="font-family:NimbusRomNo9L-Regu; color:black">then the output is
</span><span style="font-family:NimbusMonL-Regu; color:black">168</span><span style="font-family:NimbusRomNo9L-Regu; color:black">.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">* In case you’re wondering,
</span><span style="font-family:CMR10; color:black">1001 = 7 </span><span style="font-family:CMSY10; color:black">_
</span><span style="font-family:CMR10; color:black">11 </span><span style="font-family:CMSY10; color:black">_
</span><span style="font-family:CMR10; color:black">13</span><span style="font-family:NimbusRomNo9L-Regu; color:black">.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">Your five answers should be for</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">1.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 10</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">2.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 100</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">3.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 100</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">4.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 10</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">5.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 20</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-family:NimbusRomNo9L-Regu; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-family:NimbusRomNo9L-Regu; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">We decided to solve in Small Basic so as to get a handle on lops and arrays, but did not manage to solve it. I found a solution online (below) but was not able to understand how the array worked. It doesn’t solve
the problem exactly as it just lists the input number of primes, but it certain can calculate/select for primes.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Init</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">WriteLine</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">"How
many Prime numbers (1-1000)? "</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">N</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">ReadNumber</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">()</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">If</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black">N</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon"><</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">Or</span><span style="font-size:12.0pt; font-family:Consolas; color:black">
N</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">></span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1000</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Then</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">WriteLine</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">"That's
All Folks!"</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">Pause</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">()</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Program</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">End</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">()</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndIf</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">"1=2;"</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘ Prime is an array to hold the prime numbers we find. Start by creating a single element array with value 2 – the first prime number</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime[</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="font-size:12.0pt; font-family:Consolas; color:black">]</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘ Num is the current number we are checking to see if it is prime. This gets the value of the last element in Prime. Could have also said Num=2</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">MainLoop</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">+</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘ looking at the next number to see if it is prime</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> Flag</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘ Flag is 1 if Num is prime</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">For</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"> i</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">To</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
</span><span style="color:#1F497D">‘ Loop through each of the prime numbers in the array so far,</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">If</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Math</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">Remainder</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">,</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime[i]</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">0</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Then</span></b><b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
</span></b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">‘ check ifthe prime number is a factor of Num</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><i><span style="font-size:12.0pt; font-family:Consolas; color:#008020">'Not Prime</span></i><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> Flag</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">0</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘ resets Flag</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> i</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘ sets i to the last value so it exits this loop</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndIf</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndFor</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">If</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"> Flag</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Then</span></b><b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘</span></b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">if we get to here with Flag=1 then the number has no factors besides itself – so it is prime</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> Prime[</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)+</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><span style="font-size:12.0pt; font-family:Consolas; color:black">]</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘add this number to the end of the Prime array</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">Write</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">))</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
‘print something out</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">WriteLine</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">"
"</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">+</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">if</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)>=</span><span style="font-size:12.0pt; font-family:Consolas; color:black">N</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Then</span></b><b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
</span></b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">‘If we have found the number of primes requested, then exit the MainLoop</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Goto</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"> Ender</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndIf</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndIf</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Goto</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"> MainLoop</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">
</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Ender</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><i><span style="font-size:12.0pt; font-family:Consolas; color:#008020">'TextWindow.Write("Press any key to continue...")</span></i><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">WriteLine</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">"---"</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">Pause</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">()</span><span style="color:black"></span></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Goto</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black">Init</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:Consolas; color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Can anyone give me a brief written description, or point me to an online resource that can explain how this array functions? Can anyone identify a Small Basic function more suited to this problem?</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Vic</span><span style="color:black"></span></p>
<p><b><span style="color:black">Important - </span></b><span style="color:black">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.</span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black"> </span><span style="color:black"></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"; color:black">
<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"><br>
Important - 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 Ringwood Secondary College.</span><span style="color:black"></span></p>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Important - 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 Ringwood Secondary College.<br>
</font></div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span><a href="http://www.edulists.com.au">http://www.edulists.com.au</a> - FAQ, Subscribe, Unsubscribe</span><br>
<span>IT Software Development Mailing List kindly supported by</span><br>
<span><a href="http://www.vcaa.vic.edu.au">http://www.vcaa.vic.edu.au</a> - Victorian Curriculum and Assessment Authority and</span><br>
<span><a href="http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html">http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html</a>
</span><br>
<span><a href="http://www.vitta.org.au">http://www.vitta.org.au</a> - VITTA Victorian Information Technology Teachers Association Inc</span><br>
<span><a href="http://www.swinburne.edu.au/ict/schools">http://www.swinburne.edu.au/ict/schools</a> - Swinburne University</span></div>
</blockquote>
<br>
<font face="Arial" color="Gray" size="1"><br>
THIS E-MAIL IS CONFIDENTIAL.If you have received this e-mail in error, please<br>
notify me by return e-mail and delete the document. If you are not the intended<br>
recipient you are hereby notified that any disclosure, copying, distribution or<br>
taking any action in reliance on the contents of this information is strictly<br>
prohibited and may be unlawful. Galen Catholic College is not liable for the<br>
proper and complete transmission of the information contained in this<br>
communication or for any delay in its receipt.<br>
</font>
</body>
</html>