<?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>Nina19899's Weblog</title>
	<atom:link href="http://nina19899.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nina19899.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 30 Apr 2008 16:09:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nina19899.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Nina19899's Weblog</title>
		<link>http://nina19899.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nina19899.wordpress.com/osd.xml" title="Nina19899&#039;s Weblog" />
	<atom:link rel='hub' href='http://nina19899.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Chapter 7-6</title>
		<link>http://nina19899.wordpress.com/2008/04/30/chapter-7-6/</link>
		<comments>http://nina19899.wordpress.com/2008/04/30/chapter-7-6/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 16:09:38 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/?p=24</guid>
		<description><![CDATA[1.)Write a code segment that obtains an input from a text field called inputField, converts the input to an integer, and outputs the square root of the integer to a text field called outputField. 2.)Assume that an action listener has been added to button. Which method runs when the user clicks the button. 3.)Describe the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=24&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1.)Write a code segment that obtains an input from a text field called inputField, converts the input to an integer, and outputs the square root of the integer to a text field called outputField.</p>
<p>2.)Assume that an action listener has been added to button. Which method runs when the user clicks the button.</p>
<p>3.)Describe the roles and responsibilities of the model, view, and controller classes in a GUI program.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=24&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/04/30/chapter-7-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 6-8</title>
		<link>http://nina19899.wordpress.com/2008/04/30/chapter-6-8/</link>
		<comments>http://nina19899.wordpress.com/2008/04/30/chapter-6-8/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 15:58:22 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/?p=23</guid>
		<description><![CDATA[1.)Describe how to set up a timer and explain what it does. When the timer is sent the start message, its clock starts ticking, when each interval of time passes, the listener&#8217;s actionPerformed method is triggered. This method runs the operations to move the object and repaint the panel, because the timer uses the computer&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=23&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1.)Describe how to set up a timer and explain what it does.<br />
When the timer is sent the start message, its clock starts ticking, when each interval of time passes, the listener&#8217;s actionPerformed method is triggered. This method runs the operations to move the object and repaint the panel, because the timer uses the computer&#8217;s clock to measure the intervals, they will not vary with the execution speed of the computer.<br />
2.)Describe the factors that affect our perception of the movement of a graphical object.</p>
<p>3.)What causes flicker? How can flicker be eliminated.</p>
<p>4.)How do the direction and velocity of an object determine where it will be placed after a given unit of time</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=23&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/04/30/chapter-6-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 4-10</title>
		<link>http://nina19899.wordpress.com/2008/04/23/chapter-4-10/</link>
		<comments>http://nina19899.wordpress.com/2008/04/23/chapter-4-10/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 14:39:36 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/?p=22</guid>
		<description><![CDATA[1.)write a code segment that uses an I/O dialog box to prompt the user for her name. 2.)write a code segment that display your name and address in a message box, name an address should be formatted on separate lines by using the &#8220;\n&#8221; character. 3.)why we need to used the methods Integer.parseInt and Double.parseDouble [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=22&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1.)write a code segment that uses an I/O dialog box to prompt the user for her name.</p>
<p>2.)write a code segment that display your name and address in a message box, name an address should be formatted on separate lines by using the &#8220;\n&#8221; character.</p>
<p>3.)why we need to used the methods Integer.parseInt and Double.parseDouble when receiving numeric input from an I/O dialog box.</p>
<p>4.)give an example of a situation where you would want a panel to set its preferred size, rather than allow the size of the main window to determine that.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=22&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/04/23/chapter-4-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 3-7</title>
		<link>http://nina19899.wordpress.com/2008/04/23/chapter-3-7/</link>
		<comments>http://nina19899.wordpress.com/2008/04/23/chapter-3-7/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 14:31:49 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/?p=21</guid>
		<description><![CDATA[1-a.)a filled rectangle with corner point(45, 20) and size 100 by 50 -g.drawRectangle(45, 20, 100, 50) b.)a line segment with end points(20, 20) and (100, 100) -g.drawSegment(20, 20, 100, 100) c.)a circle with center point(100, 100) and radius 50 -g.drawCircle(150, 150, 50, 50) d.)a triangle with vertices (100, 100), (50, 50), and (200, 200) -g.drawTriangle(100, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=21&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1-a.)a filled rectangle with corner point(45, 20) and size 100 by 50<br />
-g.drawRectangle(45, 20, 100, 50)<br />
b.)a line segment with end points(20, 20) and (100, 100)<br />
-g.drawSegment(20, 20, 100, 100)<br />
c.)a circle with center point(100, 100) and radius 50<br />
-g.drawCircle(150, 150, 50, 50)<br />
d.)a triangle with vertices (100, 100), (50, 50), and (200, 200)<br />
-g.drawTriangle(100, 100, 50, 50, 200, 200)<br />
2.)describe the design of a program that displays a filled blue rectangle on a red background<br />
-The program uses a modified version of the  have added a paintComponent method that draws a blue regtangle containing a red text message when the window opens and whenever it is refreshed. The paintComponent methid first calls the same method in the superclass, using the reserved word super. The reason is that the method in the superclass paints the background of the panel.<br />
3.)how does one compute the center point of a panel<br />
-The method getWidth() and getHight() return the current width and hight of a panel, respectively. It will compute the center point of a panel. If the methods are called before the window is opened, they return a default value of 0.<br />
4.)list the three properties of a text font<br />
-color, font size, font style</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=21&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/04/23/chapter-3-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 2-7</title>
		<link>http://nina19899.wordpress.com/2008/04/22/chapter-2-7/</link>
		<comments>http://nina19899.wordpress.com/2008/04/22/chapter-2-7/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 15:35:34 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/?p=20</guid>
		<description><![CDATA[1-a.)White-new Color(255, 255, 255) b.)Black-new Color(0, 0, 0) c.)Highest Intensity Blue-new Color(200, 200, 255) d.)Medium Gray-new Color(128, 128, 128) 2.)A frame is a class which the code for application windows in Java is located. A panel is a flat, rectangular area suitable for displaying other objects such as geometric shapes and images. A layout manager [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=20&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1-a.)White-new Color(255, 255, 255)<br />
b.)Black-new Color(0, 0, 0)<br />
c.)Highest Intensity Blue-new Color(200, 200, 255)<br />
d.)Medium Gray-new Color(128, 128, 128)<br />
2.)A frame is a class which the code for application windows in Java is located. A panel is a flat, rectangular area suitable for displaying other objects such as geometric shapes and images. A layout manager is an object which a frame or a panel uses in container object in Java.<br />
3.)When we have more than one penal or other objects to display in a window, we have to be concern about how they are organized or laid out.<br />
4.)write a code used to set the layout for adding panels to a 5-by-5 grid in a window<br />
import javax.swing.*;<br />
import java.awt.*;<br />
public class GUIWindow{<br />
public static void main(String[] args){<br />
JFrame theGUI = new JFrame ();<br />
theGUI.setTitle(&#8220;Fourth GUI Progrgam&#8221;);<br />
theGUI.setSize(300, 200);<br />
theGUI. setDefaultCloseOperation(JFrame.EXIT_OM_CLOSE_);<br />
JPanel.panel1 = new JPanel();<br />
panel1.setBackground(Color.white);<br />
JPanel.panel2 = new JPanel();<br />
panel2.setBackground(Color.black);<br />
JPanel.panel3 = new JPanel();<br />
panel3.setBackground(Color.gray);<br />
JPanel.panel4 = new JPanel();<br />
panel4.setBackground(Color.white);<br />
Container pane = theGUI.getContentPane ();<br />
pane.setLayout(new GridLayout (5, 5));<br />
pane.add(panel1);<br />
pane.add(panel2);<br />
pane.add(panel3);<br />
pane.add(panel4);<br />
theGUI.setVisible(true);<br />
}<br />
}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=20&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/04/22/chapter-2-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 12-1</title>
		<link>http://nina19899.wordpress.com/2008/04/18/chapter-12-1/</link>
		<comments>http://nina19899.wordpress.com/2008/04/18/chapter-12-1/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 17:10:31 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/?p=19</guid>
		<description><![CDATA[EX 12-1 1.)what keeps a recursive definition from being circular -The fact that sum(1) is defined to be 1 without making reference to further invocations of sum saves the process from going on forever and the definition fro being circular. 2.)what are two parts of any recursive method -A method is said to be recursive [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=19&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>EX 12-1<br />
1.)what keeps a recursive definition from being circular<br />
-The fact that sum(1) is defined to be 1 without making reference to further invocations of sum saves the process from going on forever and the definition fro being circular.<br />
2.)what are two parts of any recursive method<br />
-A method is said to be recursive if it calls itself. First, some function f(n) is expressed in term of f(n-1) and perhaps f(n-2) and so no. Second, to prevent the definition from being circular, f(1) and perhaps f(2) and so on are defined explicitly.<br />
3.)why is recursion more expensive than iteration<br />
-<br />
4.)what are the benefits of using recursion<br />
-</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=19&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/04/18/chapter-12-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 9</title>
		<link>http://nina19899.wordpress.com/2008/02/14/chapter-9/</link>
		<comments>http://nina19899.wordpress.com/2008/02/14/chapter-9/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 17:10:53 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/?p=18</guid>
		<description><![CDATA[EX 9-1 1.)An array can group similar data with on array that contains many elements. 2.)They use the name and the index to access it. 3.) EX 9-2 1-a.)34 b.)4 c.)156 2.)The JVM checks the values of subscripts before using them and throws an ArrayIndexOutBoundsException if they are out of bound. EX 9-3 1.)int i [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=18&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>EX 9-1<br />
1.)An array can group similar data with on array that contains many elements.<br />
2.)They use the name and the index to access it.<br />
3.)</p>
<p>EX 9-2<br />
1-a.)34<br />
b.)4<br />
c.)156<br />
2.)The JVM checks the values of subscripts before using them and throws an ArrayIndexOutBoundsException if they are out of bound.</p>
<p>EX 9-3<br />
1.)int i = 0 for (i==0, i=0; i –) System.out.print(a[i])<br />
2.)int i = a.length &#8211; 1 for (i == a.length &#8211; 1; i&gt;=0; i –) System.out.print(a[i])<br />
3.)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) ;<br />
4-a.)It will change all the negative values of a to positive value by taking the absolute values of them.<br />
b.)The loop will just get the sum of all elements of the a array.<br />
5.)It tells the operator precisely how many elements inside the array.</p>
<p>EX 9-4<br />
1-a.)double[] abc = new double[15]<br />
b.)string[] abcd = new string[20]<br />
2.)It is another way to initialize the array, it assign the exact values to the array’s element.<br />
3-a.)int [] aaa = {100, 90, 75, 60, 88}<br />
b.)double[] bbb = {0.12, 0.05, 0.15}<br />
c.)string[] ccc = {nina, lu}<br />
4.)</p>
<p>EX 9-5<br />
1.)The programmer will try to solve the problem by tracking the array&#8217;s logical size with a separate integer variable.<br />
2.)When the array is not full, it must replace the array;s physical length with its logical size in the loop.</p>
<p>EX 9-6<br />
1.)A parallel array is situations in which it is convenient to declare.<br />
2.)One array should contain the exponent and the other array should contain 2 raised to that power.<br />
3.)String [] name = new String[50]int [] age = new int [50]int [] security = new int [50]String searchPerson;int correspondingAge = -1, correspondingSecurity = -1searchName = …for (int i = 0, i&lt;name.length; i ++) if (searchName.equal (name[i]))correspondingAge = age [i]correpondingSecurity = security [i]break;}<br />
4.)<br />
5.)int[] exponent = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};<br />
int[] powers = new int[10];<br />
for (int i = 0; int &lt; 10; i++){<br />
power [i] = math.pow(2, exponent[i])<br />
} ;</p>
<p>EX 9-7<br />
1.)An array in which each data item is accessed by specifying a pair of indices.<br />
2.)If an application require the variable tale reference an array of four elements. Each of these elements in turn reference and array of five integers. And the application will need to use two dimensional arrays.<br />
3.)<br />
4.)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=18&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/02/14/chapter-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 8</title>
		<link>http://nina19899.wordpress.com/2008/01/23/chapter-8/</link>
		<comments>http://nina19899.wordpress.com/2008/01/23/chapter-8/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 18:10:10 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/2008/01/23/chapter-8/</guid>
		<description><![CDATA[EX 8-1 1.)A hypertext is a structure consisting of nodes and the link between them. Each node is a document or chunk of text. During the late 1960s, the technology for realizing Bush’s dream became available, so Nelson coined the term hypertext to refer to Bush’s machine. 2.)Hypermedia is like hypertext but add more things [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=17&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;"><span class="Apple-style-span" style="font-family:Times;font-size:16px;line-height:normal;white-space:normal;">
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">EX 8-1 </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">1.)A hypertext is a structure consisting of nodes and the link between them. Each node is a document or chunk of text. During the late 1960s, the technology for realizing Bush’s dream became available, so Nelson coined the term hypertext to refer to Bush’s machine.</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">2.)Hypermedia is like hypertext but add more things inside, GUIs, Images, Sound, Animation, and Application.</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">3.)The address on the page for World Wide Web.  </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">EX 8-2 </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">1.)The HTML stand for hypertext markup language.</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">2.)The HTML text can indicate the format of textual elements or links to other nodes. </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">3.)&lt;HTML&gt; &lt;HEAD&gt; &lt;TITLE&gt;the title goes here&lt;/TITLE&gt; &lt;/HEAD&gt; &lt;BODY&gt; the text for the document goes here &lt;/BODY&gt; &lt;/HTML&gt;</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">4.)The HTML is a comment for the creator to reviews.  </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">EX 8-3 </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">1.) The HTML programmer need to use forced line break because a web page author or designer wants to display several lines of text without words wrap.</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">2.)We are preformatted next in an HTML document when we want the browser to display text, with line breaks, extra spaces, and tabs. </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">EX 8-4 </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">1.)If you forget to close the markup tag for italics on a piece of text everything after the first quote will be italics.</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">2.)The purposes of the escape sequence in HTML is to let browser to display these characters rather than interpret them.  </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">EX 8-5 </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">1.)The three types of HTML are: Unordered(bulleted) lists-a bulleted list. Numbered(ordered) lists-can be nested within other lists to any depth, but more than three deep can be difficult to read.                                                                    Definition(association) lists-display terms and their associated definition.</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">2.)</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">EX 8-6 </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">1.)</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">2.)An absolute path name because it sepcifies the exact or absolute position of the file in the computer&#8217;s directory structure. </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">3.)We can use absolute or relative path names to specify the location of a target document. </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">4.)<span class="Apple-style-span" style="font-family:Georgia;font-size:16px;line-height:20px;white-space:normal;"> </span></span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">EX 8-7 </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">1.)Inline images increase a document&#8217;s size and slow its transfer across the Internet. External images which are not display until the user clicks on a link.</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">2.)&lt;IMG src=&#8221;ImageLocation&#8221;&gt;                                                        </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">3.)&lt;IMG SCR=&#8221;mypicture.gif&#8221;HEIGHT=200 WIDTH=200&gt; </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">4.)&lt;A href=&#8221;mypicture.gif&#8221;&gt;Sample picture&lt;/A&gt;                                                                                        &lt;A href=&#8221;mypicture.gif&#8221;&gt;&lt;IMG src=&#8221;mythumbnail.gif&#8221;&gt;&lt;/A&gt; </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">EX 8-9 </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">1.)An applet is a Java application that runs in a Web page, an HTML document that contains an applet markup tag.  Example:&lt;APPLET CODE=&#8221;byte code file name&#8221; WIDTH=width HEIGHT=height&gt;&lt;/APPLET&gt;</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">2.)Applications that use a specialized view class for the main window, the conversion to an applet is surprisingly simple. First, replace the name JFrame with the name JApplet at the begining of the class definition. Second, replace the class&#8217;s constructor by the method init:  public void init(){ }</span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">3.)An applet cannot access files on the ensure security on the user&#8217;s machine. </span></div>
<div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;font:normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif;padding:0.5em;"><span class="Apple-style-span" style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;">4.)The images must reside on the Web server from which the applet&#8217;s byte code was sent. The JApplet method getDocumentBase() locates and returns the URLof the applet&#8217;s Web server. The JApplet method getImage expects this URL and the filename of an image as parameters. The method downloads the image from the Web server and returns an object of the class Image. This object can be converted to an ImageIcon object for further processing by using the ImageIcon(anImage) constructor. </span></div>
<p></span></span><span style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span"></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=17&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/01/23/chapter-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 7 Exercise</title>
		<link>http://nina19899.wordpress.com/2008/01/08/chapter-7-exercise/</link>
		<comments>http://nina19899.wordpress.com/2008/01/08/chapter-7-exercise/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 13:49:06 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/2008/01/08/chapter-7-exercise/</guid>
		<description><![CDATA[EX 7-2 1.)The structure of a query-controlled loop that processes repeated sets of inputs is the String variable doInAgain. This variable controls how many times the loop repeats, initially, the variable equals &#8220;y&#8221;. As soon as the user enters a string other than &#8220;y&#8221; or &#8220;Y&#8221;, the program terminates. 2.)Since the input of a lower [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=16&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>EX 7-2<br />
1.)The structure of a query-controlled loop that processes repeated sets of inputs is the String variable doInAgain. This variable controls how many times the loop repeats, initially, the variable equals &#8220;y&#8221;. As soon as the user enters a string other than &#8220;y&#8221; or &#8220;Y&#8221;, the program terminates.<br />
2.)Since the input of a lower case letter and a capital case letter count two different input, the toLowerCase() method avoid the problem of entering a same letter with wrong and get the wrong result. Therefore, the toLowerCase facilitate the program by indiscriminate between the lower case and the capital case letter.</p>
<p>EX 7-3<br />
1.)The role the menu plays is to display a list of options, after this, the user can select the one they needs.<br />
2.)The menu-driven programs prompts fro additional inputs related to that option and performs the needed computations, after which it displays the menu again.</p>
<p>EX 7-4<br />
1-a.)%11s<br />
b.)%12s<br />
c.)%-15<br />
d.)System.out.printf(”%6o”, i)<br />
e.)System.out.printf(%10.2f)<br />
2-a.)10,000.50<br />
b.)45 632<br />
c.)34.54</p>
<p>EX 7-5<br />
1.)The program will halt and give an error message.<br />
2.)The programmer embeds the call to an input method in a try-catch statement, as its name implies, this statement consists of two parts. The statement within the try clause are executed until one of them throws an exception. If that happens, an exception object is created and sent immediately to the catch clause. The code within the catch clause is then executed. Alternatively, if no statement throws an exception within the try clause, the catch clause is skipped.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=16&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2008/01/08/chapter-7-exercise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 6 Exercise 2, 3, 4, 5, 6, 7</title>
		<link>http://nina19899.wordpress.com/2007/11/28/chapter-6-exercise-2-3/</link>
		<comments>http://nina19899.wordpress.com/2007/11/28/chapter-6-exercise-2-3/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 15:39:13 +0000</pubDate>
		<dc:creator>nina19899</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nina19899.wordpress.com/2007/11/28/chapter-6-exercise-2-3/</guid>
		<description><![CDATA[EX 6-11.) P Q ! ((P // Q) &#38;&#38; (P &#38;&#38; Q))T T FFT FF TFT F TF F T T2-a.) Trueb.) Falsec.) Trued.) False4.) ! &#62; &#38;&#38; &#62; //5.) if (min &#60;= x &#38;&#38; x&#60;= max)System.out.println(&#8220;x is within the min and the max.&#8221;) EX 6-21-a.) If the number is bigger than 0,action 1 will work, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=15&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>EX 6-11.) P Q ! ((P // Q) &amp;&amp; (P &amp;&amp; Q))T T FFT FF TFT F TF F T T2-a.) Trueb.) Falsec.) Trued.) False4.) ! &gt; &amp;&amp; &gt; //5.) if (min &lt;= x &amp;&amp; x&lt;= max)System.out.println(&#8220;x is within the min and the max.&#8221;) EX 6-21-a.) If the number is bigger than 0,action 1 will work, if the number is smaller than 0, action 2 will work.b.) If the number is bigger than 0 and smaller than 100, action 1 will work. If the number is smaller than 0 or bigger than 100, action 2 will work.2.) Every line in a program is executes at least once, but is not the same thing as testing all possible logical paths through the program, this would provide a more thorough test, and also might require considerably more test data.3.) Equivalence Class is all the sets of test data that exercise a program in the same manner.EX-when the employee type is 1, test data for the payroll program fall into just two equivalence classes: hours between 0 and 40 and hours greater than 40.4.) Boundary Conditions are a value at which two equivalence classes meet.EX-when the employee type is 1, the hourly rate will be 10 and the hours worked will be 39, 40, and 41.5.) Extreme Conditions are data at limits of validity.EX-when the employee type is 1, the hourly rate will be 10 and the hours worked will be 0 and 168.6.) EX 6-3 1.) P: Time is before noon Q: It&#8217;s Monday Action TakenTT Take the computer science quizT F Go to gym classF T Go to gym class F F Throw a frisbee in the quad2.) A nested if statement used within another selection statement, a multiway statement is nested selection in which additional if-else statement are used in the else opinion.EX 6-41.) (income &gt; 20000) need to change to (income &gt; 20000 &amp;&amp; income 50000)2.) if (income &gt; 10000)rate = 0.10;else if (income &gt; 20000 &amp;&amp; income 50000)rate = 0.40;elserate = 0.0;EX 6-51-a.) Output will be 2, 3, run for three times which is 2,3 2,3 2,3  b.) out put will be 1,2,3 1,2,3 1,2,3 run for three times.EX 6-61.-a) To test the number, we must test number that is bigger than 0, for example 1, 2, 3. But if the number is smaller than 0, the test is wrong.b.) Test the number that is bigger than 0 and smaller than 100, fro example, 1, 2, 3, 99, 98, 97. The number that is bigger than 100 or smaller than 0 will not be the test number.2.) 3.) When a loop that does not executes a fixed number of times, it&#8217;s test data should be cover all three possibilities.4.) A program that tolerates errors in user inputs and recovers gracefully is robust program. EX- EX  6-71-a.) b.) 2.) 3.) </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nina19899.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nina19899.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nina19899.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nina19899.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nina19899.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nina19899.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nina19899.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nina19899.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nina19899.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nina19899.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nina19899.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nina19899.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nina19899.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nina19899.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nina19899.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nina19899.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nina19899.wordpress.com&amp;blog=1661078&amp;post=15&amp;subd=nina19899&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nina19899.wordpress.com/2007/11/28/chapter-6-exercise-2-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9bbd7bc0bda7851d8ce93ce569799898?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nina19899</media:title>
		</media:content>
	</item>
	</channel>
</rss>
