<?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>不雨錄</title>
	<atom:link href="http://ccy304.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ccy304.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 10 Dec 2007 12:07:16 +0000</lastBuildDate>
	<language>zh-hk</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ccy304.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>不雨錄</title>
		<link>http://ccy304.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ccy304.wordpress.com/osd.xml" title="不雨錄" />
	<atom:link rel='hub' href='http://ccy304.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The Fighters&#8217; Universe(simple verison)</title>
		<link>http://ccy304.wordpress.com/2007/12/10/the-fighters-universesimple-verison/</link>
		<comments>http://ccy304.wordpress.com/2007/12/10/the-fighters-universesimple-verison/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 12:07:16 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TextFighter]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/12/10/the-fighters-universesimple-verison/</guid>
		<description><![CDATA[The program can download in here. This time TextFighter added boss player. The rule is no change, but boss player can receives double hp and just take a halt damage. output: Welcome to Text Fighter! Player1 is Dr Chan (10) Player2 is Leo (10) Player3 is Dr Wong(Boss) (10) Player4 is Pak(Boss) (10) Round1 Dr [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=13&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The program can download in <a href="http://www.box.net/shared/d9xfpcrir5">here</a>.</p>
<p>This time TextFighter added boss player.</p>
<p>The rule is no change, but boss player can receives double hp and just take a halt damage.</p>
<p>output:</p>
<p>Welcome to Text Fighter!<br />
Player1 is Dr Chan (10)<br />
Player2 is Leo (10)<br />
Player3 is Dr Wong(Boss) (10)<br />
Player4 is Pak(Boss) (10)</p>
<p>Round1</p>
<p>Dr Chan attacks Dr Wong(Boss)<br />
Dr Chan:11<br />
Dr Wong(Boss):10</p>
<p>Pak(Boss) attacks Leo<br />
Leo:9<br />
Pak(Boss):12</p>
<p>Leo attacks Dr Wong(Boss)<br />
Dr Wong(Boss):10<br />
Leo:10</p>
<p>Pak(Boss) attacks Leo<br />
Pak(Boss):16<br />
Leo:8</p>
<p>Dr Chan:11<br />
Leo:8<br />
Dr Wong(Boss):10<br />
Pak(Boss):16</p>
<p>Round2</p>
<p>Dr Chan attacks Pak(Boss)<br />
Dr Chan:16<br />
Pak(Boss):14</p>
<p>Pak(Boss) attacks Leo<br />
Leo:2<br />
Pak(Boss):26</p>
<p>Dr Wong(Boss) attacks Dr Chan<br />
Dr Wong(Boss):22<br />
Dr Chan:10</p>
<p>Leo attacks Pak(Boss)<br />
Pak(Boss):14<br />
Leo:26</p>
<p>Dr Chan:10<br />
Leo:26<br />
Dr Wong(Boss):22<br />
Pak(Boss):14</p>
<p>Round3</p>
<p>Dr Chan attacks Pak(Boss)<br />
Dr Chan:14<br />
Pak(Boss):12</p>
<p>Dr Chan attacks Leo<br />
Leo:14<br />
Dr Chan:26</p>
<p>Pak(Boss) attacks Dr Wong(Boss)<br />
Dr Wong(Boss):17<br />
Pak(Boss):32</p>
<p>Pak(Boss) attacks Dr Wong(Boss)<br />
Pak(Boss):62<br />
Dr Wong(Boss):10</p>
<p>Dr Chan:26<br />
Leo:14<br />
Dr Wong(Boss):10<br />
Pak(Boss):62</p>
<p>Round4</p>
<p>Dr Chan attacks Leo<br />
Dr Chan:38<br />
Leo:2</p>
<p>Leo attacks Dr Chan<br />
Leo:38<br />
Dr Chan:2</p>
<p>Dr Wong(Boss) attacks Dr Chan<br />
Dr Wong(Boss):26<br />
Dr Chan:-6</p>
<p>Pak(Boss) attacks Dr Wong(Boss)<br />
Pak(Boss):134<br />
Dr Wong(Boss):8</p>
<p>Dr Chan:-6<br />
Leo:38<br />
Dr Wong(Boss):8<br />
Pak(Boss):134</p>
<p>GameOver<br />
Dr Chan is dead.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=13&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/12/10/the-fighters-universesimple-verison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>
	</item>
		<item>
		<title>Flow-shop problem</title>
		<link>http://ccy304.wordpress.com/2007/12/06/flow-shop-problem/</link>
		<comments>http://ccy304.wordpress.com/2007/12/06/flow-shop-problem/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 22:23:23 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[Genetic Algorithm]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/12/06/flow-shop-problem/</guid>
		<description><![CDATA[PowerPoint in here. The program you can download in here. In this program, I was tried to write a genetic algorithm to solve flow-shop problem. Flow-shop problem is try to sequencing the job sequence with more than two machines. Because only have two machines we can use Johnson&#8217;s rule to solve it, so there are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=12&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PowerPoint in <a href="http://www.box.net/shared/phdbmmjgtr">here</a>.</p>
<p>The program you can download in <a href="http://www.box.net/shared/bvlsknu2a4">here</a>.</p>
<p>In this program, I was tried to write a genetic algorithm to solve flow-shop problem.</p>
<p>Flow-shop problem is try to sequencing the job sequence with more than two machines.</p>
<p>Because only have two machines we can use <a href="http://en.wikipedia.org/wiki/Johnson's_Rule">Johnson&#8217;s rule</a> to solve it, so there are m machine(m should &gt; 2) and j jobs(j should &gt; 1) with several conditions need to be in place:</p>
<ol>
<li>The time for each job must be constant.</li>
<li>The job times must be mutually exclusive of the job&#8217;s sequence.</li>
<li>All jobs must go through first work center before going through the second work center.</li>
<li>There must be no job priorities.</li>
</ol>
<p>So in this program, I would tried to find out the best sequencing of jobs.</p>
<p>Here has a example with gantt chart:</p>
<p><img src="http://www.box.net/index.php?rm=box_download_shared_file&amp;resize=1&amp;width=570&amp;border=1&amp;file_id=f_114869887" height="172" width="570" /></p>
<p>In this picture, the table on the left hand side has shown the time each job need in every machine. And right hand side is a gantt chart for showing the total time of sequence job A-B-C.</p>
<p>Because we are sequence the job&#8217;s sequence, so there are j!(e.g. j=4, 4!=24) combination.</p>
<p>In this program, I have set the population sizes for 500, 10 jobs, 10 machines and run 10 generations. The probability of mutation and crossover are 0.1 and 0.8. All of these you can change in the top of Chromosome.java.</p>
<p>The program will output the work table first, and print out best sequence in each generation and finally will output over all the best.</p>
<p>The program still not find out the best one, only find a better one, so I think I still need to take notice of evaluate fitness.</p>
<p>This idea came from <a href="http://blog.sina.com.tw/872/article.php?pbgid=872&amp;entryid=42142">jijng&#8217;s Blog</a>, but some pictures were missing, so many concepts were difficult to get, especially 3.3 how to calculate the fitness, this may the main problem of why my program didn&#8217;t as <span class="estitle">efficient as jijng&#8217;s work.</span></p>
<p>output:</p>
<p>|     0 1 2 3 4 5 6 7 8 9<br />
|0 7 8 3 8 2 2 1 2 3 1<br />
|1 2 8 9 5 6 7 8 5 1 7<br />
|2 2 2 5 4 8 9 8 2 9 3<br />
|3 7 1 9 5 7 4 7 5 4 2<br />
|4 9 1 6 6 1 4 8 1 4 9<br />
|5 5 8 9 7 4 2 4 1 3 9<br />
|6 6 3 8 1 4 3 3 7 3 8<br />
|7 2 4 9 7 4 8 2 5 3 2<br />
|8 2 7 4 1 2 3 6 1 5 9<br />
|9 2 6 9 9 6 6 3 9 1 7</p>
<p>Generation:1<br />
The best one is 183<br />
4 2 7 5 0 6 1 3 9 8</p>
<p>Generation:2<br />
The best one is 182<br />
0 6 2 9 1 4 7 3 5 8</p>
<p>Generation:3<br />
The best one is 185<br />
4 2 9 1 7 5 0 6 3 8</p>
<p>Generation:4<br />
The best one is 188<br />
4 2 9 1 7 8 6 3 5 0</p>
<p>Generation:5<br />
The best one is 184<br />
8 3 5 6 2 9 4 7 1 0</p>
<p>Generation:6<br />
The best one is 184<br />
4 7 6 2 9 3 1 5 0 8</p>
<p>Generation:7<br />
The best one is 182<br />
0 6 2 9 1 4 7 3 5 8</p>
<p>Generation:8<br />
The best one is 188<br />
4 6 8 2 9 7 5 3 1 0</p>
<p>Generation:9<br />
The best one is 186<br />
0 6 2 9 1 7 3 5 4 8</p>
<p>Generation:10<br />
The best one is 182<br />
0 6 2 9 1 4 7 5 3 8</p>
<p>Over all the best one is 182<br />
0 6 2 9 1 4 7 3 5 8</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=12&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/12/06/flow-shop-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>

		<media:content url="http://www.box.net/index.php?rm=box_download_shared_file&#38;resize=1&#38;width=570&#38;border=1&#38;file_id=f_114869887" medium="image" />
	</item>
		<item>
		<title>Chapter6 Exercises</title>
		<link>http://ccy304.wordpress.com/2007/11/03/chapter6-exercises/</link>
		<comments>http://ccy304.wordpress.com/2007/11/03/chapter6-exercises/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 14:12:58 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[ch06]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/11/03/chapter6-exercises/</guid>
		<description><![CDATA[The Java file you can download here. Here are two program, CAI.java and Guess.java. CAI.java is a program to let student to learn multiplication. It will random to ask 10 question. output: Welcome for test of multiplication! How much is 10 times 5 50 Keep UP the good work How much is 2 times 1 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=11&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Java file you can download <a href="http://www.box.net/shared/r40u8efp99">here</a>.</p>
<p>Here are two program, CAI.java and Guess.java.</p>
<p>CAI.java is a program to let student to learn multiplication. It will random to ask 10 question.</p>
<p>output:</p>
<p>Welcome for test of multiplication!<br />
How much is 10 times 5<br />
50<br />
Keep UP the good work<br />
How much is 2 times 1<br />
2<br />
Very good!<br />
How much is 6 times 4<br />
24<br />
Very good!<br />
How much is 9 times 1<br />
9<br />
Very good!<br />
How much is 9 times 9<br />
81<br />
Excellent<br />
How much is 4 times 1<br />
4<br />
Keep UP the good work<br />
How much is 3 times 6<br />
18<br />
Nice work<br />
How much is 7 times 7<br />
49<br />
Keep UP the good work<br />
How much is 7 times 9<br />
63<br />
Nice work<br />
How much is 9 times 6<br />
54<br />
Excellent<br />
The percentage of correct responses is 100%<br />
Try again?<br />
1:yes<br />
2:no<br />
2<br />
Thank you for using this program!</p>
<p>Guess.java will create a num between 1 and 1000 to let player guess.</p>
<p>output:</p>
<p>Guess the number between 1 and 1000:<br />
500<br />
Too high.Try again.<br />
250<br />
Too low.Try again.<br />
375<br />
Too low.Try again.<br />
436<br />
Too high.Try again.<br />
405<br />
Too high.Try again.<br />
390<br />
Too low.Try again.<br />
398<br />
Too low.Try again.<br />
402<br />
Too high.Try again.<br />
400<br />
Congratulations.You guessed the number!<br />
Either you know the secret or you got lucky!<br />
Play again?<br />
1:Yes<br />
2:No<br />
2<br />
Thank you for play!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=11&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/11/03/chapter6-exercises/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter6 Graphics Exercises</title>
		<link>http://ccy304.wordpress.com/2007/11/03/chapter6-graphics-exercises/</link>
		<comments>http://ccy304.wordpress.com/2007/11/03/chapter6-graphics-exercises/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 12:55:52 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[ch06]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/11/03/chapter6-graphics-exercises/</guid>
		<description><![CDATA[The Java file you can download here. This program is tried to random two difference colours for draw a bulleye. output:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=10&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Java file you can download <a href="http://www.box.net/shared/r40u8efp99">here</a>.</p>
<p>This program is tried to random two difference colours for draw a bulleye.</p>
<p>output:</p>
<p><img src="http://www.box.net/index.php?rm=box_download_shared_file&amp;resize=1&amp;width=570&amp;border=1&amp;file_id=f_105595727" height="299" width="279" /></p>
<p><img src="http://www.box.net/index.php?rm=box_download_shared_file&amp;resize=1&amp;width=570&amp;border=1&amp;file_id=f_105595685" height="299" width="278" /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=10&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/11/03/chapter6-graphics-exercises/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>

		<media:content url="http://www.box.net/index.php?rm=box_download_shared_file&#38;resize=1&#38;width=570&#38;border=1&#38;file_id=f_105595727" medium="image" />

		<media:content url="http://www.box.net/index.php?rm=box_download_shared_file&#38;resize=1&#38;width=570&#38;border=1&#38;file_id=f_105595685" medium="image" />
	</item>
		<item>
		<title>Complex TextFighter</title>
		<link>http://ccy304.wordpress.com/2007/10/17/complex-textfighter/</link>
		<comments>http://ccy304.wordpress.com/2007/10/17/complex-textfighter/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 17:53:21 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TextFighter]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/10/17/complex-textfighter/</guid>
		<description><![CDATA[The Java file you can download here. This TextFighter is more funny, because there are four players and you can choose attack who and determine who win is using a game &#8220;Paper, Scissors, Rock&#8221;. The user may role Dr Chan to duel with Leo, Dr Wong, Pak(other philosophers) and the game will over when Dr [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=9&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Java file you can download <a href="http://www.box.net/shared/4nckzr33m3">here</a>.</p>
<p>This TextFighter is more funny, because there are four players and you can choose attack who and determine who win is using a game &#8220;Paper, Scissors, Rock&#8221;. The user may role Dr Chan to duel with Leo, Dr Wong, Pak(other philosophers) and the game will over when Dr Chan is dead or all philosophers are dead except Dr Chan. All the things is base on simple TextFigher.</p>
<p>Welcome to Text Fighter!<br />
Player1 is Dr Chan (100)<br />
Player2 is Leo (100)<br />
Player3 is Dr Wong (100)<br />
Player4 is Pak (100)</p>
<p>Round1</p>
<p>===Attack===<br />
Who do you want to attack?<br />
1:Leo<br />
2:Dr Wong<br />
3:Pak<br />
2<br />
1:Paper<br />
2:Scissors<br />
3:Rock<br />
2<br />
Dr Chan VS Dr Wong<br />
SCISSORS VS ROCK<br />
Dr Wong wins!<br />
Dr Wong attacks Dr Chan<br />
100 &#8211; 100<br />
Damage is 1<br />
Dr Chan:99<br />
Dr Wong:101<br />
Leo&#8217;s Thinking&#8230; /</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=9&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/10/17/complex-textfighter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple TextFighter</title>
		<link>http://ccy304.wordpress.com/2007/10/17/simple-textfighter/</link>
		<comments>http://ccy304.wordpress.com/2007/10/17/simple-textfighter/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 17:39:43 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TextFighter]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/10/17/simple-textfighter/</guid>
		<description><![CDATA[The Java file you can download here. This is a simple TextFighter, only 2 players and user may not have any action. There are two players and a random number to determine the attack success or not. The winner may add the difference between two players and the loser may subtract the difference. If the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=8&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Java file you can download <a href="http://www.box.net/shared/63rti41kb0">here</a>.</p>
<p>This is a simple TextFighter, only 2 players and user may not have any action. There are two players and a random number to determine the attack success or not. The winner may add the difference between two players and the loser may subtract the difference. If the difference is 0, it may turn to 1.</p>
<p>Simple output:</p>
<p>Welcome to Text Fighter!<br />
Player1 is Dr Chan (100)<br />
Player2 is Leo (100)</p>
<p>Round1<br />
===Attack===<br />
Leo attacks Dr Chan<br />
Damage is 1<br />
Dr Chan:99<br />
Leo:101</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=8&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/10/17/simple-textfighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter4 Graphics Exercises</title>
		<link>http://ccy304.wordpress.com/2007/10/17/chapter4-graphics-exercises/</link>
		<comments>http://ccy304.wordpress.com/2007/10/17/chapter4-graphics-exercises/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 17:20:45 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[ch04]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/10/17/chapter4-graphics-exercises/</guid>
		<description><![CDATA[The Java file you can download here. There are four files: DrawPanelA, DrawPanelATest, DrawPanelB, DrawPanelBTest. These all are using Java:How to Program chapter4 skill to write. DrawPanelA output: DrawPanelB output:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=7&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Java file you can download <a href="http://www.box.net/shared/49c85dedz8">here</a>.</p>
<p>There are four files: DrawPanelA, DrawPanelATest, DrawPanelB, DrawPanelBTest.</p>
<p>These all are using <a href="http://www.amazon.com/Java-How-Program-7th/dp/0132222205/ref=pd_bbs_sr_1/102-0659107-7392115?ie=UTF8&amp;s=books&amp;qid=1192637111&amp;sr=8-1">Java:How to Program</a> chapter4 skill to write.</p>
<p>DrawPanelA output:</p>
<p><img src="http://www.box.net/shared/mcztfu7axt" /><img src="http://www.box.net/index.php?rm=box_download_shared_file&amp;file_id=f_101341037&amp;shared_name=mcztfu7axt" /></p>
<p>DrawPanelB output:</p>
<p><img src="http://www.box.net/index.php?rm=box_download_shared_file&amp;file_id=f_101343539&amp;shared_name=p67r5lkvay" /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=7&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/10/17/chapter4-graphics-exercises/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>

		<media:content url="http://www.box.net/shared/mcztfu7axt" medium="image" />

		<media:content url="http://www.box.net/index.php?rm=box_download_shared_file&#38;file_id=f_101341037&#38;shared_name=mcztfu7axt" medium="image" />

		<media:content url="http://www.box.net/index.php?rm=box_download_shared_file&#38;file_id=f_101343539&#38;shared_name=p67r5lkvay" medium="image" />
	</item>
		<item>
		<title>Chapter4 Exercises</title>
		<link>http://ccy304.wordpress.com/2007/10/17/chapter4-exercises/</link>
		<comments>http://ccy304.wordpress.com/2007/10/17/chapter4-exercises/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 17:00:26 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[ch04]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/10/17/chapter4-exercises/</guid>
		<description><![CDATA[The Java file you can download here. There are two programs: Printstar and Multiples. These all are using Java:How to Program chapter4 skill to write. Printstar Simple output: &#124;* * * * * * * * &#124; * * * * * * * * &#124;* * * * * * * * &#124; * [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=6&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Java file you can download <a href="http://www.box.net/shared/49c85dedz8">here</a>.</p>
<p>There are two programs: Printstar and Multiples.</p>
<p>These all are using <a href="http://www.amazon.com/Java-How-Program-7th/dp/0132222205/ref=pd_bbs_sr_1/102-0659107-7392115?ie=UTF8&amp;s=books&amp;qid=1192637111&amp;sr=8-1">Java:How to Program</a> chapter4 skill to write.</p>
<p>Printstar Simple output:</p>
<p>|* * * * * * * *<br />
| * * * * * * * *<br />
|* * * * * * * *<br />
| * * * * * * * *<br />
|* * * * * * * *<br />
| * * * * * * * *<br />
|* * * * * * * *<br />
| * * * * * * * *</p>
<p>Multiples:</p>
<p>This program will keep displaying the multiples of 2 by using infinite loop.</p>
<p>Simple output:</p>
<p>2<br />
4<br />
8<br />
16<br />
32<br />
64<br />
128<br />
256<br />
512<br />
1024<br />
2048<br />
4096<br />
8192<br />
16384<br />
32768<br />
65536<br />
131072<br />
262144<br />
524288<br />
1048576<br />
2097152<br />
4194304<br />
8388608<br />
16777216<br />
33554432<br />
67108864<br />
134217728<br />
268435456<br />
536870912<br />
1073741824<br />
-2147483648</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=6&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/10/17/chapter4-exercises/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter3 Exercise</title>
		<link>http://ccy304.wordpress.com/2007/10/17/chapter3-exercise/</link>
		<comments>http://ccy304.wordpress.com/2007/10/17/chapter3-exercise/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 16:50:54 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[ch03]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/10/17/chapter3-exercise/</guid>
		<description><![CDATA[The Java file you can download here. There are two files: Employee and EmployeeTest. These all are using Java:How to Program chapter3 skill to write. This exercise is tried to create a constructor that initializes three instance variables: first name(String), last name(String) and monthly salary(double). The program will display employee&#8217;s yearly salary. If employee&#8217;s monthly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=5&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Java file you can download <a href="http://www.box.net/shared/k7ly91cj0t">here</a>.</p>
<p>There are two files: Employee and EmployeeTest.</p>
<p>These all are using <a href="http://www.amazon.com/Java-How-Program-7th/dp/0132222205/ref=pd_bbs_sr_1/102-0659107-7392115?ie=UTF8&amp;s=books&amp;qid=1192637111&amp;sr=8-1">Java:How to Program</a> chapter3 skill to write.</p>
<p>This exercise is tried to create a constructor that initializes three instance variables: first name(String), last name(String) and monthly salary(double).  The program will display employee&#8217;s yearly salary. If employee&#8217;s monthly salary is not positive, it will turn to 0.</p>
<p>Simple output:</p>
<p>Wai Kwok&#8217;s yearly salary is 0.00<br />
Y Tsoi&#8217;s yearly salary is 120000.00<br />
After increase salary, Wai Kwok&#8217;s yearly salary is 0.00<br />
After increase salary, Y Tsoi&#8217;s yearly salary is 132000.0</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=5&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/10/17/chapter3-exercise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>
	</item>
		<item>
		<title>Chapter2 Exercises</title>
		<link>http://ccy304.wordpress.com/2007/10/17/chapter2-exercises/</link>
		<comments>http://ccy304.wordpress.com/2007/10/17/chapter2-exercises/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 16:28:05 +0000</pubDate>
		<dc:creator>不雨</dc:creator>
				<category><![CDATA[ch02]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ccy304.wordpress.com/2007/10/17/chapter2-exercises/</guid>
		<description><![CDATA[The Java file you can download here. There are four programs: Pi, Counter, Separation and Discrimination. These all are using Java:How to Program chapter2 skill to write. Pi: Pi.Java is tried to use the PI values, which is already defined in package java.lang. Simple output: Enter the radius: 2 diameter=4.00 circumference=12.57 area=12.57 Counter: Counter.Java is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=4&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Java file you can download <a href="http://www.box.net/shared/kr43t9o23v">here</a>.</p>
<p>There are four programs: Pi, Counter, Separation and Discrimination.</p>
<p>These all are using <a href="http://www.amazon.com/Java-How-Program-7th/dp/0132222205/ref=pd_bbs_sr_1/102-0659107-7392115?ie=UTF8&amp;s=books&amp;qid=1192637111&amp;sr=8-1">Java:How to Program</a> chapter2 skill to write.</p>
<p>Pi:</p>
<p>Pi.Java is tried to use the PI values, which is already defined in package java.lang.</p>
<p>Simple output:</p>
<p>Enter the radius: 2<br />
diameter=4.00<br />
circumference=12.57<br />
area=12.57</p>
<p>Counter:</p>
<p>Counter.Java is using to count how many positive numbers , negative numbers and zero.</p>
<p>After running the program, you should type in 5 numbers.</p>
<p>Simple output:</p>
<p>Enter 5 numbers:<br />
10<br />
-10<br />
0<br />
1<br />
-1<br />
Positive:2<br />
Negative:2<br />
Zero:1</p>
<p>Separation:</p>
<p>This program will ask you to type in a 5 digit number and it will separate the number to 5 numbers.</p>
<p>Simple output:</p>
<p>Enter a 5 digit number:<br />
12345<br />
1 2 3 4 5</p>
<p>Discrimination:</p>
<p>This program can  discriminate the number you input is even/odd.</p>
<p>Simple output:</p>
<p>Enter a number:12<br />
12 is a even.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ccy304.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ccy304.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ccy304.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ccy304.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ccy304.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ccy304.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ccy304.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ccy304.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ccy304.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ccy304.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ccy304.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ccy304.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ccy304.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ccy304.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ccy304.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ccy304.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ccy304.wordpress.com&amp;blog=1749549&amp;post=4&amp;subd=ccy304&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ccy304.wordpress.com/2007/10/17/chapter2-exercises/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4de6a1977cf1588657665434fe340fb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">不雨</media:title>
		</media:content>
	</item>
	</channel>
</rss>
