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

		<guid isPermaLink="false">http://choux1988.wordpress.com/?p=28</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’s actionPerformed method is triggered. This method runs the operations to move the object and repaint the panel, because the timer uses the computer’s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=28&amp;subd=choux1988&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’s actionPerformed method is triggered. This method runs the operations to move the object and repaint the panel, because the timer uses the computer’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/choux1988.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=28&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2008/05/06/68/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
		<item>
		<title>4.10</title>
		<link>http://choux1988.wordpress.com/2008/04/24/410/</link>
		<comments>http://choux1988.wordpress.com/2008/04/24/410/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 13:42:26 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/?p=25</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 “\n” 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=choux1988.wordpress.com&amp;blog=1661044&amp;post=25&amp;subd=choux1988&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.<br />
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 “\n” character.<br />
3.)why we need to used the methods Integer.parseInt and Double.parseDouble when receiving numeric input from an I/O dialog box.<br />
4.) Give an example of a situation where ou would want a panel to set its preferred size, rather thant allow the size of the main window to determine that</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/choux1988.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=25&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2008/04/24/410/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
		<item>
		<title>3.7</title>
		<link>http://choux1988.wordpress.com/2008/04/24/37/</link>
		<comments>http://choux1988.wordpress.com/2008/04/24/37/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 13:13:30 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/?p=24</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, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=24&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1</p>
<p>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/choux1988.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=24&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2008/04/24/37/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
		<item>
		<title>12.1</title>
		<link>http://choux1988.wordpress.com/2008/04/24/121/</link>
		<comments>http://choux1988.wordpress.com/2008/04/24/121/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 13:11:50 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/?p=22</guid>
		<description><![CDATA[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 if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=22&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>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</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/choux1988.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=22&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2008/04/24/121/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
		<item>
		<title>2.7</title>
		<link>http://choux1988.wordpress.com/2008/04/24/27/</link>
		<comments>http://choux1988.wordpress.com/2008/04/24/27/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 13:11:03 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/?p=21</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, 12 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=choux1988.wordpress.com&amp;blog=1661044&amp;post=21&amp;subd=choux1988&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, 12 <img class="wp-smiley" src="http://nina19899.wordpress.com/wp-includes/images/smilies/icon_cool.gif" alt="8)" /><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(”Fourth GUI Progrgam”);<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);</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/choux1988.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=21&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2008/04/24/27/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>

		<media:content url="http://nina19899.wordpress.com/wp-includes/images/smilies/icon_cool.gif" medium="image">
			<media:title type="html">8)</media:title>
		</media:content>
	</item>
		<item>
		<title>CH9</title>
		<link>http://choux1988.wordpress.com/2008/02/14/ch9/</link>
		<comments>http://choux1988.wordpress.com/2008/02/14/ch9/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 17:11:41 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/?p=18</guid>
		<description><![CDATA[12.1 1)array is a data structure. It helps user easy to manipulate millions of items and elements. 2) items in the array are called elements. They all must be in same type. The type can be any primitive or reference type. For example, there can be array of scores, name or student objects. Each array [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=18&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">12.1</span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">1)array is a data structure. It helps user easy to manipulate millions of items and elements. </span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">2)  items in the array are called elements. They all must be in same type. The type can be any primitive or reference type. For example, there can be array of scores, name or student objects. Each array have to have same length. </span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">3) Mary is using an array of doubles to store an employee’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.</span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;"> 12.2</span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">1) Assume that the array a contains the five integers 34, 23, 67, 89, and 12. Write the values of the following expressions:a. a [1] a array’s 2nd element, so 23. b. a[a.length - 1]  4c. a[2] + a[3]67 + 89 = 156 2. What 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’s length? it’’s going to be out of bound, causing error. </span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">9.3 </span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">1.) int i=0 for (i==0, i=0; i-) System.out.print(a[i]). 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); 4a)It will change all the negative values of a to positive value by taking the absolute values of them.</span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;"> 9.4 </span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">1.)double[] abc=new double[15] string[] abcd=new sting[20]. </span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">2)It is another way to initialize the array.it assign the exact values to array&#8217;s element. </span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">3-a)int[] aaa={100,90,75,60,88} </span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;"> b.) double[] bbb={0.12,0.05,0.15}</span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;"> c) string [] ccc={david, chen}.</span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">4. When declaring an array variable.</span></p>
<p><span class="Apple-style-span" style="font-size:12px;line-height:17px;font-family:Arial;color:#4a4a49;">9.5.</span></p>
<p>1.)The programmer will try to solve the problem by tracking the array’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.9.6</p>
<p>1.A parallel array is situations in which it is convenient to declare.</p>
<p class="postfeedback">
<p>2.One array should contain the exponent and the other array should contain 2 raised to that power.</p>
<p>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;}4.</p>
<p>9.7</p>
<p>1.An array in which each data item is accessed by specifying a pair of indices.</p>
<p>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.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/choux1988.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=18&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2008/02/14/ch9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
		<item>
		<title>8.1~8.8</title>
		<link>http://choux1988.wordpress.com/2008/01/23/8188/</link>
		<comments>http://choux1988.wordpress.com/2008/01/23/8188/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 18:43:41 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/2008/01/23/8188/</guid>
		<description><![CDATA[8.1 1.A hypertext is a structure consisting of nodes and the links between them.2. Hypermedia is like hypertext, but it adds GUIs, Images, Sound, Animation, Applications.3. Assigning node addresses using machine-independent hypertext markup language. 8.21.HTML is developed as a machine-independent way of representing information in a networked-based hypermedia system.  2. It can indicate the format of textual [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=16&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>8.1 1.A hypertext is a structure consisting of nodes and the links between them.2. Hypermedia is like hypertext, but it adds GUIs, Images, Sound, Animation, Applications.3. Assigning node addresses using machine-independent hypertext markup language. 8.21.HTML is developed as a machine-independent way of representing information in a networked-based hypermedia system.  2. It can indicate the format of textual elements or links to other nodes. 3. The text for the document goes here. 4. The HTML is a comment for the creator to reviews.8.3<span style="font-family:'Hoefler Text';line-height:22px;" class="Apple-style-span">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><span style="font-family:'Hoefler Text';line-height:22px;" class="Apple-style-span">2. We are preformatted next in an HTML document when we want the browser to display text, with line breaks, extra spaces, and tabs.3.</span><span style="font-family:'Hoefler Text';line-height:22px;" class="Apple-style-span"><span class="Apple-style-span" style="font-family:Georgia;line-height:20px;">8.41.<span style="font-family:'Hoefler Text';line-height:22px;" class="Apple-style-span"> If you forget to close the markup tag for italics on a piece of text everything after the first quote will be italics.</span><span style="font-family:'Hoefler Text';line-height:22px;" class="Apple-style-span">2.The purposes of the escape sequence in HTML is to let browser to display these characters rather than interpret them.</span></span></span><span style="font-family:'Hoefler Text';line-height:22px;" class="Apple-style-span"></span>8.51. The three types of HTML are: Unordered(bulleted)list-Numbered(ordered)list-Definition(association)lists-display terms and their associated definition. 8.6<span style="font-family:Times;line-height:normal;" class="Apple-style-span">
<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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">2.An absolute path name because it sepcifies the exact or absolute position of the file in the computer’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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">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;">8.7</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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">1.Inline images increase a document’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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">2.&lt;IMG src=”ImageLocation”&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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">3.&lt;IMG SCR=”mypicture.gif”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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">4.&lt;A href=”mypicture.gif”&gt;Sample picture&lt;/A&gt;                                                                                        &lt;A href=”mypicture.gif”&gt;&lt;IMG src=”mythumbnail.gif”&gt;&lt;/A&gt; </span> 8.9</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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">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=”byte code file name” 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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">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’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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">3.An applet cannot access files on the ensure security on the user’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 style="font-family:Verdana;font-size:13px;line-height:18px;white-space:pre-wrap;" class="Apple-style-span">4. The images must reside on the Web server from which the applet’s byte code was sent. The JApplet method getDocumentBase() locates and returns the URLof the applet’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></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/choux1988.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=16&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2008/01/23/8188/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
		<item>
		<title>Ch7 7.2~7.5</title>
		<link>http://choux1988.wordpress.com/2008/01/10/ch7-7275/</link>
		<comments>http://choux1988.wordpress.com/2008/01/10/ch7-7275/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 19:43:34 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/2008/01/10/ch7-7275/</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 “y”. As soon as the user enters a string other than “y” or “Y”, the program terminates.2.) EX 7-3 1.)The role the menu [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=15&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#333333;font-family:'Lucida Grande';font-size:12px;line-height:normal;" class="Apple-style-span"></p>
<p style="font-size:1em;line-height:1.5em;margin:1.2em 0;">EX 7-2</p>
<p style="font-size:1em;line-height:1.5em;margin:1.2em 0;">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 “y”. As soon as the user enters a string other than “y” or “Y”, the program terminates.2.)</p>
<p style="font-size:1em;line-height:1.5em;margin:1.2em 0;">EX 7-3</p>
<p style="font-size:1em;line-height:1.5em;margin:1.2em 0;">1.)The role the menu plays is to display a list of options, after this, the user can select the one they needs.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 style="font-size:1em;line-height:1.5em;margin:1.2em 0;">Ex 7-4 1</p>
<p style="font-size:1em;line-height:1.5em;margin:1.2em 0;">a.)%11s b.)%12s  c.) %-15  d.)System.out.intf(&#8220;%60&#8243;, e.)System.out.printf(%10.2f)</p>
<p> 2  a.)10,000.50, b.)45 632, c.)34.54</p>
<p>Ex7-5</p>
<p>1.)<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>
<p></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/choux1988.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=15&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2008/01/10/ch7-7275/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter 6.1~6.5</title>
		<link>http://choux1988.wordpress.com/2007/11/28/chapter-6163/</link>
		<comments>http://choux1988.wordpress.com/2007/11/28/chapter-6163/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 15:39:44 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/2007/11/28/chapter-6163/</guid>
		<description><![CDATA[6.1 1. (true true false true) (false true false true) (true false false true)2. Fill in the truth values in the following truth table:a.true b. false c.trued.false4. !&#62; &#38;&#38;&#62; //5. If ( min &#60;= x &#38;&#38; x&#60;=max)System.out.println( &#8220;X is between the millennium and the maximum)6.2 1. a.If number greater than 0 that we do the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=14&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>6.1  1.    (true    true    false true)    (false     true false  true)       (true false  false     true)2. Fill in the truth values in the following truth table:a.true b. false c.trued.false4. !&gt; &amp;&amp;&gt; //5. If ( min &lt;= x &amp;&amp; x&lt;=max)System.out.println( &#8220;X is between the millennium and the maximum)6.2   1.  a.If number greater than 0 that we do the work on action 1; if number smaller than 0 then we do the work on action 2.       b. If number between 0 and 100, then we do the work on action 1; if number smaller than 0 and greater than 100, then we do the work on action 1.         2. That every line in a program is executed at least once. And this is not the same thing as testing all possible logical paths through a program, which would provide a more thorough test, but also might require considerably more test data.      3. They are equivalent from the perspective of testing the same paths through the program. For example if the employee type is 1, test data for he payroll program fall into just two equivalence classes: hours between 0 and 40 and hours greater than         4. It is near the boundaries between equivalence classes. And it si common for programs to fail at these points. For example, for the payroll program, this requirement means testing with hours equal to 39, 40 and 41.     5. It is with data at the limits of validity. For example, we choose hours worked equal to 0 and 168 hours.     6.6.31. A:the time is before noon    B: the day is monday     So A true and B true, than they will take the computer science quiz.    And A true B false, than they will go to gym class.           A false B true, than they will go to gym class.           A false B false, than they will take the computer science quiz.2. What is the difference between a nested if statement and a multiway if statement ?Nested if statement provide one mechanism for dealing the complexity, and it offer an alternative. But Multiway statement is compared to the two-way and one-way if statements we have seen earlier.6 .41. Income need to change, which like:  income &gt; 20000 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.06.51.a)output will be 2, 3, run for three  times which 2,3 2, 3 2, 3 b.)out put will be 1,2,3 1, , 31, 2, 3 run for three times6.61.a) To test the number, we must test number that is bigger than 0, for example 1, 2,3. But it the number is smaller than 0, the test is wrong.b). Test the number that is bigger than 0 and smaller than 100, example, 1, 2, 3, 99, 98, 97. The number that is bigger than 100 or smaller than 0 will no be test number.2.3. When a loop that does not executes a fixed number of times, tis test data should be cover all tree possibilities. 4. A program that tolerates errors in user inputs and recovers gracefully is robust program.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/choux1988.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=14&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2007/11/28/chapter-6163/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
		<item>
		<title>5.4 The Structure and Behavior of Methods</title>
		<link>http://choux1988.wordpress.com/2007/11/05/54-the-structure-and-behavior-of-methods/</link>
		<comments>http://choux1988.wordpress.com/2007/11/05/54-the-structure-and-behavior-of-methods/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 13:46:23 +0000</pubDate>
		<dc:creator>choux1988</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://choux1988.wordpress.com/2007/11/05/54-the-structure-and-behavior-of-methods/</guid>
		<description><![CDATA[1. Explain the difference between formal parameters and actual parameters. The formal parameters are parameters listed in a method&#8217;s definition, and the actual parameters are values passed to a method wen it is invoked. 2. How does Java transmit data by means of parameters? When a method is called, the value of the actual parameter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=12&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Explain the difference between formal parameters and actual parameters.<br />
The formal parameters are parameters listed in a method&#8217;s definition, and the actual parameters are values passed to a method wen it is invoked.</p>
<p>2. How does Java transmit data by means of parameters?<br />
When a method is called, the value of the actual parameter is automatically transfered to the corresponding formal parameter immediately before the method is activated.</p>
<p>3. Define a method sum. This method expects two integers as parameters and returns the sum of the numbers ranging from the first integer to the second one.<br />
public the Sum(){<br />
int sum;<br />
sum = (int) Math.round (a + b);<br />
debug(”Sum; “average);<br />
retirn sum;<br />
4. What is the purpose of local variables?<br />
It is convenient to have temporary working storage for data in a method.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/choux1988.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/choux1988.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/choux1988.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/choux1988.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/choux1988.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/choux1988.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/choux1988.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/choux1988.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/choux1988.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/choux1988.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/choux1988.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/choux1988.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/choux1988.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/choux1988.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/choux1988.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/choux1988.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=choux1988.wordpress.com&amp;blog=1661044&amp;post=12&amp;subd=choux1988&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://choux1988.wordpress.com/2007/11/05/54-the-structure-and-behavior-of-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bf7dd201a8a133aec11b35f5723067b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">choux1988</media:title>
		</media:content>
	</item>
	</channel>
</rss>
