<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Craigmount Higher Computing &#187; Software Development</title>
	<atom:link href="http://craigmounthighercomputing.wordpress.com/category/software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://craigmounthighercomputing.wordpress.com</link>
	<description>Higher Computing 2007 - 2008 at Craigmount</description>
	<lastBuildDate>Thu, 10 Sep 2009 10:20:56 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='craigmounthighercomputing.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7815c176806fa7b8f3232dcf33020e87?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Craigmount Higher Computing &#187; Software Development</title>
		<link>http://craigmounthighercomputing.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://craigmounthighercomputing.wordpress.com/osd.xml" title="Craigmount Higher Computing" />
		<item>
		<title>Compilers and Interpreters</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/12/05/compilers-and-interpreters/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/12/05/compilers-and-interpreters/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 09:42:15 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/12/12/compilers-and-interpreters/</guid>
		<description><![CDATA[I think this is a hard bit of the course to understand (and explain) but here goes:
All high level language (HLL) programs  need to be translated into machine code (aka 1&#8217;s and 0&#8217;s/binary).   There are two forms of translators to make this happen;  Compilers and Interpreters.
Compilers &#8211; These turn the whole [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=89&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I think this is a hard bit of the course to understand (and explain) but here goes:</p>
<p>All <font color="#0000ff">high level language</font> (HLL) programs  need to be <font color="#339966">translated </font>into <font color="#ff0000">machine code</font> (<font color="#000000">aka 1&#8217;s and 0&#8217;s/binary)</font>.   There are two forms of translators to make this happen;  Compilers and Interpreters.</p>
<p><font color="#333399"><strong>Compilers</strong></font> &#8211; These turn the whole HLL program into machine code in one go.  This results in a file (object code) that can then be run on any computer system (is very portable) and <u>runs very quickly</u> (as it does not need to be translated again).  Unfortunately if you have made a mistake (called a syntax error) in your program then it won&#8217;t run at all.</p>
<p><font color="#800000"><strong>Interpreters </strong></font>- These turn the HLL program into binary each time you try and run it.  An interpreter will go through each line of your program each time it translates it.   This means that it is <u>slow to translate your program</u>.</p>
<p>Here are the Powerpoints below:</p>
<p><a href="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-1.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-1.thumbnail.jpg?w=170&#038;h=128" alt="translators-1.jpg" height="128" width="170" /></a><a href="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-2.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-2.thumbnail.jpg?w=170&#038;h=128" alt="translators-2.jpg" height="128" width="170" /></a><a href="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-3.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-3.thumbnail.jpg?w=170&#038;h=128" alt="translators-3.jpg" height="128" width="170" /></a><a href="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-1.jpg" title="Direct link to file">        </a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/89/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/89/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=89&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/12/05/compilers-and-interpreters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-1.thumbnail.jpg" medium="image">
			<media:title type="html">translators-1.jpg</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-2.thumbnail.jpg" medium="image">
			<media:title type="html">translators-2.jpg</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/12/translators-3.thumbnail.jpg" medium="image">
			<media:title type="html">translators-3.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Standard Algorithms 3 &amp; 4</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/12/03/standard-algorithms-3-4/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/12/03/standard-algorithms-3-4/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 23:45:59 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Standard Algorithms]]></category>
		<category><![CDATA[standard algorithm finding maximum finding minimum]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/12/03/standard-algorithms-3-4/</guid>
		<description><![CDATA[So these two find the highest number in a list or the lowest number in a list.  The way they work is this:  look at the first item in the list and make it the maximum, then look at every other item and see if it is more.  Quite simple when you think of it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=84&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So these two find the highest number in a list or the lowest number in a list.  The way they work is this:  look at the first item in the list and make it the maximum, then look at every other item and see if it is more.  Quite simple when you think of it like that.</p>
<p>Here is the pseudocode for finding max:</p>
<p><img src="///C:/DOCUME%7E1/JTW/LOCALS%7E1/Temp/moz-screenshot-3.jpg" /><img src="///C:/DOCUME%7E1/JTW/LOCALS%7E1/Temp/moz-screenshot-4.jpg" /></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.1<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">set the first item to be the maximum</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.2<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">for each item (starting with the second)</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.3<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">if the current item is more than the maximum</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.4<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">set the current item to be the maximum</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.5<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">end if</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.6<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">end loop</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.7 </span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">print out the maximum</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"> Finding the minimum is exactly the same only change more than to read less than (and every maximum to minimum).</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">Powerpoint:</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"> <a href="http://craigmounthighercomputing.files.wordpress.com/2007/12/finding-max-min.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/12/finding-max-min.thumbnail.jpg?w=170&#038;h=128" alt="finding-max-min.jpg" height="128" width="170" /></a></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/84/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/84/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=84&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/12/03/standard-algorithms-3-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="/DOCUME%7E1/JTW/LOCALS%7E1/Temp/moz-screenshot-3.jpg" medium="image" />

		<media:content url="/DOCUME%7E1/JTW/LOCALS%7E1/Temp/moz-screenshot-4.jpg" medium="image" />

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/12/finding-max-min.thumbnail.jpg" medium="image">
			<media:title type="html">finding-max-min.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Standard Algorithm 2 &#8211; Linear Search</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/11/30/standard-algorithms-linear-search/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/11/30/standard-algorithms-linear-search/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 23:38:22 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Standard Algorithms]]></category>
		<category><![CDATA[linear search standard algorithm]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/12/03/standard-algorithms-linear-search/</guid>
		<description><![CDATA[This algorithm asks the user for something to look for and then checks through a list of items to see if it can find it.   If it does find it, the algorithm says in what position it found it.   So for example from the following list:
&#8220;Stewart&#8221;, &#8220;Simon&#8221;, &#8220;Dara&#8221;, &#8220;Scott&#8221;, &#8220;Keith&#8221;, &#8220;Farooq&#8221;, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=82&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This algorithm asks the user for something to look for and then checks through a list of items to see if it can find it.   If it does find it, the algorithm says in what position it found it.   So for example from the following list:</p>
<p><strong><font color="#000080">&#8220;Stewart&#8221;, &#8220;Simon&#8221;, &#8220;Dara&#8221;, &#8220;Scott&#8221;, &#8220;Keith&#8221;, &#8220;Farooq&#8221;, &#8220;Gaetano&#8221;</font></strong></p>
<p><strong><font color="#000000">User Input                                                Algorithm Output</font></strong></p>
<p><font color="#ff0000">Stewart                                                            1</font></p>
<p><font color="#ff0000">Dara                                                                        3</font></p>
<p><font color="#ff0000">Gaetano                                                            7</font></p>
<p>In the same way as the last standard algorithm you need to be able to write the pseudocode in the exam!</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.1<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">ask for item being searched for</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.2<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">for each item in the array</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.3<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">if this item matches the item being searched for</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.4<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">store the position</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.5<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">end if</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.6<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">end loop</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.7 </span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">print out where the item was found</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p>Powerpoint below:</p>
<p><a href="http://craigmounthighercomputing.files.wordpress.com/2007/12/linear-search.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/12/linear-search.thumbnail.jpg?w=168&#038;h=128" alt="linear-search.jpg" height="128" width="168" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/82/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/82/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=82&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/11/30/standard-algorithms-linear-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/12/linear-search.thumbnail.jpg" medium="image">
			<media:title type="html">linear-search.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Standard Algorithm 1 &#8211; Counting Occurrences</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/11/29/standard-algorithm-1-counting-occurrences/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/11/29/standard-algorithm-1-counting-occurrences/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 18:01:18 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Standard Algorithms]]></category>
		<category><![CDATA[standard algorithm counting Occurrences]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/11/29/standard-algorithm-1-counting-occurrences/</guid>
		<description><![CDATA[This is the first standard algorithm (in no particular order)   that you have to know, and be able to write a pseudo code version of in the exam.
Put simply this algorithm counts the number of times an item appears in a list.  The item could be a name or a number, the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=80&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is the first standard algorithm (in no particular order)   that you have to know, and be able to write a pseudo code version of in the exam.</p>
<p>Put simply this algorithm counts the number of times an item appears in a list.  The item could be a name or a number, the list is normally an array.</p>
<p>So for example in the following list:</p>
<p><font color="#0000ff">&#8220;A&#8221;  &#8220;B&#8221;  &#8220;B&#8221;  &#8220;C&#8221; &#8220;B&#8221; &#8220;A&#8221;  &#8220;A&#8221; &#8220;B&#8221; &#8220;C&#8221; &#8220;B&#8221; </font></p>
<p>The algorithm would ask the user what they are looking for and then should return the results below:</p>
<p><strong>Being looked for                             </strong>       <strong>Number of occurrences</strong></p>
<p><font color="#ff0000">A                                                                         </font>                                       <font color="#ff0000">3</font></p>
<p><font color="#ff0000">B</font>                                                                                                                 <font color="#ff0000">5</font></p>
<p><font color="#ff0000">C  </font>                                      <font color="#ff0000">                                                                         2</font></p>
<p><font color="#ff0000"> </font></p>
<p>So you need to be able to write the pseudo code that will do this.   My answer is below, see the powerpoints at the bottom for more detail:</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.1<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">ask for item being searched for</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.2<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">for each item in the array </span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.3<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">if this item matches the item being searched for</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.4<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">add one to the count</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.5<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">end if</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.6<span>  </span></span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">end loop</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;">1.7 </span><span style="font-size:14pt;font-family:Arial;color:#3333cc;">print out the number of times the item was found</span></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;">&nbsp;</p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"> <a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/counting-occurrences.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/counting-occurrences.thumbnail.jpg?w=169&#038;h=128" alt="counting-occurrences.jpg" height="128" width="169" /></a></p>
<p style="margin-top:8.4pt;margin-bottom:0;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align:baseline;"><span style="font-size:14pt;font-family:Arial;color:#c00000;"><br />
</span><span style="font-size:14pt;font-family:Arial;color:#3333cc;"></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/80/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/80/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=80&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/11/29/standard-algorithm-1-counting-occurrences/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/counting-occurrences.thumbnail.jpg" medium="image">
			<media:title type="html">counting-occurrences.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Brazilians!</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/11/23/brazilians/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/11/23/brazilians/#comments</comments>
		<pubDate>Fri, 23 Nov 2007 10:01:53 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Language Constructs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[functions brazil brazilian brazilians concatenate subst]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/11/23/brazilians/</guid>
		<description><![CDATA[This was Mr Polland&#8217;s excellent program that I converted in to VB (and am still a bit too excited about).
It has an array of your names, an array of brazilian endings, and it concatenates a random ending onto a substring of your name.
The point of the lesson is to do with Functions.  The random [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=75&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This was Mr Polland&#8217;s excellent program that I converted in to VB (and am still a bit too excited about).</p>
<p>It has an array of your names, an array of brazilian endings, and it concatenates a random ending onto a substring of your name.</p>
<p>The point of the lesson is to do with Functions.  The random function is called with two parameters (low and high) andit then generates a random number between those two.  In the program I use that random number to pick a brazilian ending and put it onto your name.</p>
<p>Here is a screenshot:</p>
<p><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/brazilian-program.jpg" alt="brazilian-program.jpg" /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/75/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/75/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=75&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/11/23/brazilians/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/brazilian-program.jpg" medium="image">
			<media:title type="html">brazilian-program.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Local and Global Variables</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/11/22/local-and-global-variables/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/11/22/local-and-global-variables/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 12:50:18 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Language Constructs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[global local scope variables]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/11/22/local-and-global-variables/</guid>
		<description><![CDATA[A local variable  is declared (set up) and only available for use in the sub-routine it is made in.  A global variable is declared at the start of your program (in VB anyway) and can be used anywhere.
It is easier to understand when you look at some code:
      [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=73&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A <strong><font color="#000080">local variable</font></strong>  is declared (set up) and only available for use in the sub-routine it is made in.  A <font color="#ff0000"><strong>global variable</strong></font> is declared at the start of your program (in VB anyway) and can be used anywhere.</p>
<p>It is easier to understand when you look at some code:<br />
<strong><em><font color="#808080">        private sub get_marks</font></em></strong></p>
<blockquote><p><strong><em><font color="#808080">dim marks(10) as integer</font></em></strong></p>
<p><font color="#808080"><em><strong>for counter 1 to 10</strong></em></font></p>
<p><font color="#808080"><em><strong>marks(counter) = inputbox(&#8220;Type in your mark&#8221;)</strong></em></font></p>
<p><font color="#808080"><em><strong>next</strong></em></font></p>
<p><font color="#808080"><em><strong>end sub</strong></em></font></p></blockquote>
<p><font color="#000000">In the code above the array (<font color="#808080">marks</font>) is only available inside the sub-routine called get_marks.  If you try to access it somewhere else, it won&#8217;t work i.e. the <font color="#00ff00"><strong>scope</strong></font> of the variable (array) is <font color="#0000ff">local</font></font></p>
<p>If you set up the variable (or array) at the start of the program before any sub-routines (like we normally do) then it will be available for use everywhere i.e. the <font color="#00ff00"><strong>scope</strong></font> of the variable is <font color="#ff0000">global</font></p>
<p>Notes below:</p>
<p><a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/local-global-variables.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/local-global-variables.thumbnail.jpg?w=170&#038;h=128" alt="local-global-variables.jpg" height="128" width="170" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/73/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/73/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=73&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/11/22/local-and-global-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/local-global-variables.thumbnail.jpg" medium="image">
			<media:title type="html">local-global-variables.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>String operations &#8211; Sub strings and Concatenation</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/11/20/string-operations-sub-strings-and-concatenation/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/11/20/string-operations-sub-strings-and-concatenation/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 12:02:27 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[concatenation sub string substring string operations]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/11/20/string-operations-sub-strings-and-concatenation/</guid>
		<description><![CDATA[We looked at what a string variable was last week e.g. &#8220;James&#8221;, &#8220;Eh12&#8243;.  You need to know about two things that you can do to this type of data:
Substring &#8211; take a part of a string e.g. take &#8220;ame&#8221; from &#8220;James&#8221;
Concatenation &#8211; join two strings together e.g. join &#8220;Craig&#8221; and &#8220;mount&#8221; to make &#8220;Craigmount&#8221;
That [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=69&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We looked at what a string variable was last week e.g. &#8220;James&#8221;, &#8220;Eh12&#8243;.  You need to know about two things that you can do to this type of data:</p>
<p><strong><font color="#0000ff">Substring</font></strong> &#8211; take a part of a string e.g. take &#8220;ame&#8221; from &#8220;James&#8221;</p>
<p><strong><font color="#0000ff">Concatenation</font></strong> &#8211; join two strings together e.g. join &#8220;Craig&#8221; and &#8220;mount&#8221; to make &#8220;Craigmount&#8221;</p>
<p>That is pretty much it, except you need to know how to make Visual Basic do this.  Here are some examples:</p>
<p>Concatenation is done using the <strong>&amp;</strong> symbol.</p>
<p>For example:</p>
<blockquote><p><strong><em><font color="#999999">first = &#8220;j&#8221;</font></em></strong></p>
<p><strong><em><font color="#999999">second = &#8220;whiteside&#8221;</font></em></strong></p>
<p><strong><em><font color="#999999">username = first &amp; second </font></em></strong></p></blockquote>
<p><font color="#000000">The code above will make <font color="#ff0000">username</font> equal to &#8220;<font color="#ff0000">jwhiteside</font>&#8220;.</font></p>
<p>Substrings are done by using left, mid (or right).</p>
<p>For example:</p>
<blockquote><p><strong><em><font color="#808080">day = &#8220;wednesday&#8221;</font></em></strong></p>
<p><strong><em><font color="#808080">firstbit = left(day, 6)</font></em></strong></p>
<p><strong><em><font color="#808080">middlebit = mid(day, 4, 3)<br />
</font></em></strong></p>
<p><strong><em><font color="#808080">lastbit  = right(day, 3)</font></em></strong></p></blockquote>
<p><font color="#000000">This would make <font color="#ff0000">firstbit</font> equal to <font color="#ff0000">&#8220;Wednes&#8221;</font>, <font color="#ff0000">secondbit</font> equal to <font color="#ff0000">&#8220;nes&#8221;</font> and <font color="#ff0000">lastbit</font> equal to <font color="#ff0000">&#8220;day&#8221;</font>.</font></p>
<p>Click on the notes below to see the other examples and the questions again.</p>
<p><a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/string-ops.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/string-ops.thumbnail.jpg?w=170&#038;h=128" alt="string-ops.jpg" height="128" width="170" /></a><a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/string-op-questions.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/string-op-questions.thumbnail.jpg?w=169&#038;h=128" alt="string-op-questions.jpg" height="128" width="169" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/69/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/69/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=69&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/11/20/string-operations-sub-strings-and-concatenation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/string-ops.thumbnail.jpg" medium="image">
			<media:title type="html">string-ops.jpg</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/string-op-questions.thumbnail.jpg" medium="image">
			<media:title type="html">string-op-questions.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Sub routines</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/11/19/sub-routines/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/11/19/sub-routines/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 11:24:08 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[subroutine sub-routine procedure array]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/11/19/sub-routines/</guid>
		<description><![CDATA[Once I eventually got my program to work in the way it was supposed to   we looked at what a sub-routine is (also called a procedure).    There were two sub routines in this program that took in pupil marks and then printed out an average, they are called:


fill_array
calculate_average

It is good [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=67&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Once I eventually got my program to work in the way it was supposed to <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  we looked at what a <strong><font color="#ff0000">sub-routine</font></strong> is (also called a procedure).    There were two sub routines in this program that took in pupil marks and then printed out an average, they are called:</p>
<blockquote>
<ul>
<li><font color="#000080">fill_array</font></li>
<li><font color="#000080">calculate_average</font></li>
</ul>
<p>It is good to make use of sub-routines as they increase the maintainability of your program (i.e. other programmers can update your program easily).</p></blockquote>
<p>These can be called (made to run) from any part of the program.  Click the notes below to see the program:</p>
<p><a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/subroutines.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/subroutines.thumbnail.jpg?w=170&#038;h=128" alt="subroutines.jpg" height="128" width="170" /></a></p>
<p>Because this program  makes use of subroutines so it is <font color="#339966"><strong>modular!</strong></font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/67/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/67/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=67&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/11/19/sub-routines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/subroutines.thumbnail.jpg" medium="image">
			<media:title type="html">subroutines.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>For Loops</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/11/18/for-loops/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/11/18/for-loops/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 19:29:15 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/11/18/for-loops/</guid>
		<description><![CDATA[We did some quick questions (here they are without answers  in case you want to try them again, with answers at the bottom of the post so you can check them), then we had a look at how to make code repeat itself a set number of times.  One way to do this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=63&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We did some quick questions (here they are without answers <a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/constructs-quick-qus-wthout-answers.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/constructs-quick-qus-wthout-answers.thumbnail.jpg?w=54&#038;h=41" alt="constructs-quick-qus-wthout-answers.jpg" height="41" width="54" /></a> in case you want to try them again, with answers at the bottom of the post so you can check them), then we had a look at how to make code repeat itself a set number of times.  One way to do this is with a <font color="#ff0000"><strong>for loop</strong></font>.</p>
<p>In Visual Basic you need a counter (to keep track of how often the loop has gone round).   This can then be used to do clever things, like change a particular element of an array.   For example in the code below on the tenth go around of the loop, what the user types in will go into place 10 of the array (if you are starting from 1):</p>
<blockquote>
<p align="left">&nbsp;</p>
<blockquote>
<p align="left">&nbsp;</p>
<p align="left"><strong><font color="#999999"><em>For counter := 1 to 15</em> </font></strong></p>
<p align="left">&nbsp;</p>
<p align="left"><strong><font color="#999999"><em>name(counter) = InputBox(&#8220;Please type in another name&#8221;)</em> </font></strong></p>
<p align="left">&nbsp;</p>
<p align="left"><strong><font color="#999999"><em>Next</em></font></strong></p>
</blockquote>
</blockquote>
<p align="left"> If you still don&#8217;t get it, re-read the powerpoint below:</p>
<p align="left"> <a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/for-loop.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/for-loop.thumbnail.jpg?w=171&#038;h=82" alt="for-loop.jpg" height="82" width="171" /></a></p>
<p align="left">&nbsp;</p>
<p align="left">And these are the answers to the quick questions:</p>
<p align="left"> <a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/constructs-quick-qus-with-answers.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/constructs-quick-qus-with-answers.thumbnail.jpg?w=169&#038;h=128" alt="constructs-quick-qus-with-answers.jpg" height="128" width="169" /></a></p>
<blockquote>
<blockquote></blockquote>
</blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/63/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/63/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=63&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/11/18/for-loops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/constructs-quick-qus-wthout-answers.thumbnail.jpg" medium="image">
			<media:title type="html">constructs-quick-qus-wthout-answers.jpg</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/for-loop.thumbnail.jpg" medium="image">
			<media:title type="html">for-loop.jpg</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/constructs-quick-qus-with-answers.thumbnail.jpg" medium="image">
			<media:title type="html">constructs-quick-qus-with-answers.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Maintenance</title>
		<link>http://craigmounthighercomputing.wordpress.com/2007/11/07/maintenance/</link>
		<comments>http://craigmounthighercomputing.wordpress.com/2007/11/07/maintenance/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 20:46:48 +0000</pubDate>
		<dc:creator>mrwhiteside</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Software Development process]]></category>
		<category><![CDATA[corrective perfective adaptive maintenance updates]]></category>

		<guid isPermaLink="false">http://craigmounthighercomputing.wordpress.com/2007/11/07/maintenance/</guid>
		<description><![CDATA[If everything went to plan today (without me) then you should have learned about the three different types of maintenance that can occur after a program has been released.
These are:
Perfective &#8211; adding new features to improve the software (e.g. Sims updates!)
Corrective &#8211; fixing problems in the software that should have been taken care of during [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=48&subd=craigmounthighercomputing&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If everything went to plan today (without me) then you should have learned about the three different types of maintenance that can occur after a program has been released.</p>
<p>These are:</p>
<p><strong><font color="#339966">Perfective &#8211; </font></strong><font color="#339966">adding new features to improve the software (e.g. Sims updates!)</font></p>
<p><strong><font color="#ff0000">Corrective &#8211; </font></strong><font color="#ff0000">fixing problems in the software that should have been taken care of during development!  </font></p>
<p><strong><font color="#0000ff">Adaptive &#8211; </font></strong><font color="#0000ff">altering the software to work on new computer systems or in new environments</font></p>
<p>All of these occur after the software has been released.</p>
<p>Powerpoint from lesson:</p>
<p><a href="http://craigmounthighercomputing.files.wordpress.com/2007/11/maintenance.jpg" title="Direct link to file"><img src="http://craigmounthighercomputing.files.wordpress.com/2007/11/maintenance.thumbnail.jpg?w=171&#038;h=127" alt="maintenance.jpg" height="127" width="171" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/craigmounthighercomputing.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/craigmounthighercomputing.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/craigmounthighercomputing.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/craigmounthighercomputing.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/craigmounthighercomputing.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/craigmounthighercomputing.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/craigmounthighercomputing.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/craigmounthighercomputing.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/craigmounthighercomputing.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/craigmounthighercomputing.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/craigmounthighercomputing.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/craigmounthighercomputing.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=craigmounthighercomputing.wordpress.com&blog=1775093&post=48&subd=craigmounthighercomputing&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://craigmounthighercomputing.wordpress.com/2007/11/07/maintenance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/705dbd8ec4718c1d79c547158ad43982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mrwhiteside</media:title>
		</media:content>

		<media:content url="http://craigmounthighercomputing.files.wordpress.com/2007/11/maintenance.thumbnail.jpg" medium="image">
			<media:title type="html">maintenance.jpg</media:title>
		</media:content>
	</item>
	</channel>
</rss>