<?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>Haishachen's Weblog</title>
	<atom:link href="http://haishachen.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://haishachen.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 08 May 2008 19:10:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='haishachen.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Haishachen's Weblog</title>
		<link>http://haishachen.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://haishachen.wordpress.com/osd.xml" title="Haishachen&#039;s Weblog" />
	<atom:link rel='hub' href='http://haishachen.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Chapter 9, 9.7</title>
		<link>http://haishachen.wordpress.com/2008/02/19/chapter-9-97/</link>
		<comments>http://haishachen.wordpress.com/2008/02/19/chapter-9-97/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 14:37:51 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/2008/02/19/chapter-9-97/</guid>
		<description><![CDATA[1. What are two-dimesional arrays? &#8211; One array with each element is defined by two numbers. 2. Describe an application in which a two-dimensional array might be used. &#8211; To create a table with numerator and denominator. 3. &#8211; for (row=0; row &#60; table.length; row ++) for (col = 0; table[row]. length; col++) if (table[row][col] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=66&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. What are two-dimesional arrays?</p>
<p>&#8211; One array with each element is defined by two numbers.</p>
<p>2. Describe an application in which a two-dimensional array might be used.</p>
<p>&#8211; To create a table with numerator and denominator.</p>
<p>3.</p>
<p>&#8211; for (row=0; row &lt; table.length; row ++)</p>
<p>for (col = 0; table[row]. length; col++)</p>
<p>if (table[row][col] &lt;0)</p>
<p>break;<br />
4. Describe the contents of the array after the following code segment is run:</p>
<p>&#8211; It creates a five by five table and assign a value of the product of rows and colums into each spot.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/66/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/66/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=66&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/02/19/chapter-9-97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 9, 9.6</title>
		<link>http://haishachen.wordpress.com/2008/02/19/chapter-9-96/</link>
		<comments>http://haishachen.wordpress.com/2008/02/19/chapter-9-96/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 14:36:30 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=65</guid>
		<description><![CDATA[1. What are parallel arrays?&#8211; They are arrays that contains corresponding data in cells of same index. 2. Describe an application in which parallel arrays might be used.&#8211; The declaration between people&#8217;s name and their age in the school. 3. Declare an instantiate the variables for parallel arrays to track the names, ages, and social [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=65&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. What are parallel arrays?&#8211; They are arrays that contains corresponding data in cells of same index. 2. Describe an application in which parallel arrays might be used.&#8211; The declaration between people&#8217;s name and their age in the school. 3. Declare an instantiate the variables for parallel arrays to track the names, ages, and social security numbers of 50 employees.String [] name = new String[50]int [] age = new int [50]int [] security = new int [50]String searchPerson;int correspondingAge = -1, correspondingSecurity = -1searchName = &#8230;for (int i = 0, i&lt;name.length; i ++) if (searchName.equal (name[i]))correspondingAge = age [i]correpondingSecurity = security [i]break;}. 5. Write a code segment that creates parallel arrays containing the first 10 nonnegative powers of 2. One array should contain the exponent and the other array should contain 2 raised to that power.</p>
<p>&#8211; int[] exponent = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};</p>
<p>int[] powers = new int[10];</p>
<p>for (int i = 0; int &lt; 10; i++){</p>
<p>power [i] = math.pow(2, exponent[i])</p>
<p>} ;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/65/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/65/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=65&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/02/19/chapter-9-96/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 9, 9.5</title>
		<link>http://haishachen.wordpress.com/2008/02/19/chapter-9-95/</link>
		<comments>http://haishachen.wordpress.com/2008/02/19/chapter-9-95/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 14:32:45 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=64</guid>
		<description><![CDATA[1. What happens when the programmer tries to access an array cell whose index is greater than or equal to its logical size? &#8212; It will give you the default value of zero, and to add another value we just need to expand the size of of the logical size. 2. Describe an application that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=64&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. What happens when the programmer tries to access an array cell whose index is greater than or equal to its logical size? &#8212; It will give you the default value of zero, and to add another value we just need to expand the size of of the logical size.  2. Describe an application that uses an array that might not be full. &#8212; For example, create a class with 5 kids in the class and leave some spaces for upcoming students.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/64/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/64/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=64&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/02/19/chapter-9-95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 9, 9.4</title>
		<link>http://haishachen.wordpress.com/2008/02/15/chapter-9-94/</link>
		<comments>http://haishachen.wordpress.com/2008/02/15/chapter-9-94/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 16:01:51 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=63</guid>
		<description><![CDATA[1. Declare and instantiate array variables for the following data:&#8211; double[] abc = new double[15]     string[] abcd = new string[20] 2. What is an initializer list? &#8211; It is another way to initialize the array, it assign the exact values to the array&#8217;s element. 3. Use an initializer list to create the following arrays:a. five test scores of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=63&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Declare and instantiate array variables for the following data:&#8211; double[] abc = new double[15]     string[] abcd = new string[20] 2. What is an initializer list? &#8211; It is another way to initialize the array, it assign the exact values to the array&#8217;s element. 3. Use an initializer list to create the following arrays:a. five test scores of 100, 90, 75, 60, and 88.    int [] aaa = {100, 90, 75, 60, 88}b. three interest rates of 0.12, 0.05, and 0.15    double[] bbb = {0.12, 0.05, 0.15}c. two strings, your first name and last name   string[] ccc = {david, chen} 4. Why is it better to use the form &lt;type&gt; [] &lt;variable&gt; instead of &lt;type&gt; &lt;variable&gt;[] when declaring an array variable. &#8211; It&#8217;s more confusing.  </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/63/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/63/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=63&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/02/15/chapter-9-94/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 9, 9.3</title>
		<link>http://haishachen.wordpress.com/2008/02/14/chapter-9-93/</link>
		<comments>http://haishachen.wordpress.com/2008/02/14/chapter-9-93/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 17:11:47 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=62</guid>
		<description><![CDATA[1. Write a loop that prints all of the items in an array a to the terminal screen. &#8211; int i = 0      for (i==0, i&#60;a.length, i++)          System.out.print(a[i]) 2. Repeat Question 1 put but print the items in reverse order. &#8211; int i = a.length &#8211; 1     for (i == a.length &#8211; 1; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=62&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Write a loop that prints all of the items in an array a to the terminal screen. &#8211; int i = 0      for (i==0, i&lt;a.length, i++)          System.out.print(a[i]) 2. Repeat Question 1 put but print the items in reverse order. &#8211; int i = a.length &#8211; 1     for (i == a.length &#8211; 1; i&gt;=0; i &#8211;)     System.out.print(a[i])3. &#8212;  int index;          for (int i =0; i &lt; a. length; i ++){           if (a[i] &lt;0 ){              index = i;              break;         } else {              index = a.length;        }     System.out.print (index) ;4. Describe what the following code segments do:    a. It will change all the negative values of a to positive value by taking the absolute values of them.    b. the loop will just get the sum of all elements of the a array. 5. What is the advantage of using the instance variable length variable length in a loop in a loop with an array.  &#8211; It tells the operator precisely how many elements inside the array.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/62/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/62/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=62&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/02/14/chapter-9-93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 9, 9.2</title>
		<link>http://haishachen.wordpress.com/2008/02/14/chapter-9-92/</link>
		<comments>http://haishachen.wordpress.com/2008/02/14/chapter-9-92/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 16:51:45 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=61</guid>
		<description><![CDATA[1. Assume that the array a contains the five integers 34, 23, 67, 89, and 12. Write the values of the following expressions:- a. 34  b. a[a.length -1] =4  c. a[2]+ a[3] = 156What happens when a program attempts to access an item at an index that is less than 0 or greater than or equal to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=61&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Assume that the array a contains the five integers 34, 23, 67, 89, and 12. Write the values of the following expressions:- a. 34  b. a[a.length -1] =4  c. a[2]+ a[3] = 156What happens when a program attempts to access an item at an index that is less than 0 or greater than or equal to the array&#8217;s length?&#8211; The JVM checks the values of subscripts before using them and throws an ArrayIndexOutOfBoundsException if they are out of bound. </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/61/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/61/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=61&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/02/14/chapter-9-92/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 9, 9.1</title>
		<link>http://haishachen.wordpress.com/2008/02/14/chapter-9-91/</link>
		<comments>http://haishachen.wordpress.com/2008/02/14/chapter-9-91/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 16:43:22 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=60</guid>
		<description><![CDATA[1. A Program needs many variables to store and process data, How does an array solve this problem?&#8211; An array can group similar data with one array that contains many elements2. How does the programmer access an item in an array?&#8211; They use the name and the index to access it.3. Mary is using an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=60&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. A Program needs many variables to store and process data, How does an array solve this problem?&#8211; An array can group similar data with one array that contains many elements2. How does the programmer access an item in an array?&#8211; They use the name and the index to access it.3. Mary is using an array of doubles to store an employee&#8217;s wage amounts for each day of the week(Monday through Friday). Draw a picture of this array with sample items and references to each one.&#8211;  </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=60&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/02/14/chapter-9-91/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 8, 8.9</title>
		<link>http://haishachen.wordpress.com/2008/01/30/chapter-8-89/</link>
		<comments>http://haishachen.wordpress.com/2008/01/30/chapter-8-89/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 13:45:05 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=59</guid>
		<description><![CDATA[1. Describe the simplest format of an HTML applet tag. Give an example. &#8212; below is the HTML code: 2. How is an application converted to an applet? &#8212; Two steps: a. Replace the name JFrame with the name JApplet at the beginning of the class definition(extends JApplet). b. Replace the class&#8217;s constructor by the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=59&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Describe the simplest format of an HTML applet tag. Give an example.<br />
 &#8212; below is the HTML code:</p>
<p>2. How is an application converted to an applet?<br />
 &#8212; Two steps:<br />
     a. Replace the name JFrame with the name JApplet at the beginning of the class definition(extends JApplet).<br />
     b. Replace the class&#8217;s constructor by the method init:<br />
       public void init(){<br />
           statement<br />
       }</p>
<p>3. What can an application do that an applet cannot do ?<br />
 &#8212; Applets can&#8217;t access files on the user machine. More secure.<br />
    APPlets and the HTML documents that use them should be placed in the same directory. </p>
<p>4. Describe the steps required to load an image into an applet.<br />
 &#8211;a. Locate this applet&#8217;s web server and load the image.<br />
   b. Convert to an image icon for further processing.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/59/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/59/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=59&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/01/30/chapter-8-89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 8, 8.8</title>
		<link>http://haishachen.wordpress.com/2008/01/29/chapter-8-88/</link>
		<comments>http://haishachen.wordpress.com/2008/01/29/chapter-8-88/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 14:45:17 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=58</guid>
		<description><![CDATA[1. Describe how you create a table using the HTML table tags. &#8212; First specify that HTML code as table. Then make a caption on the top, then comprise column header and informations about each header below. 2. Write an HTML code segment that displays a 3*3 table with cells that are numbered as follows: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=58&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Describe how you create a table using the HTML table tags.<br />
 &#8212; First specify that HTML code as table. Then make a caption on the top, then comprise column header and informations about each header below.</p>
<p>2. Write an HTML code segment that displays a 3*3 table with cells that are numbered as follows:<br />
   1 2 3<br />
   4 5 6<br />
   7 8 9</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/58/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/58/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=58&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/01/29/chapter-8-88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 8, 8.7</title>
		<link>http://haishachen.wordpress.com/2008/01/29/chapter-8-87/</link>
		<comments>http://haishachen.wordpress.com/2008/01/29/chapter-8-87/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 14:30:59 +0000</pubDate>
		<dc:creator>haishachen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haishachen.wordpress.com/?p=57</guid>
		<description><![CDATA[1. What is the difference between an inline image and an external image? &#8212; Inline images are graphical images that are displayed when the user opens a page. 2. Write the simplest version of the format of the markup tag for an inline image. &#8212; The simplest version of the format of the markup tag [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=57&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. What is the difference between an inline image and an external image?<br />
 &#8212; Inline images are graphical images that are displayed when the user opens a page. </p>
<p>2. Write the simplest version of the format of the markup tag for an inline image.<br />
 &#8212; The simplest version of the format of the markup tag for an inline image is:<IMG SRC="ImageLocation"></p>
<p>3. Write a markup tag that loads an inline image of the file image.gif, centers the image, and scales its size to 200pixels * 200 pixels.<br />
 &#8212; <IMG SRC="image.gif" Height="200" Width="200" Align="center"></p>
<p>4. What are two ways of tagging an external image? Give an example of each.<br />
 &#8212; The two ways are by displaying a text that can be clicked and get you the image. The other one is to display the smaller version of that image and by clicking it, it give you the full version of that image.<br />
     <A HREF="mypicture.gif"> Picture </A><br />
     <A HREF="mypicture.gif"><IMG SRC="mythumbnail.gif"></A></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/haishachen.wordpress.com/57/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/haishachen.wordpress.com/57/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haishachen.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haishachen.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haishachen.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haishachen.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haishachen.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haishachen.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haishachen.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haishachen.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haishachen.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haishachen.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haishachen.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haishachen.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haishachen.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haishachen.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haishachen.wordpress.com&amp;blog=1661041&amp;post=57&amp;subd=haishachen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haishachen.wordpress.com/2008/01/29/chapter-8-87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d08397a8d171b5a5c34c443b6b4f2c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haishachen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
