2007年10月30日 星期二

上CMOS...

看到FireFox的右下角有油膩膩猴子
頓時覺得有些許懷念XD

2007年10月27日 星期六

這個論壇頗凶狠的QQ

JAVA世界論壇



寫JAVA的另外一個程式Eclipse


JBuilder開啟很慢,我跟彥儒一致認為是功能太強大拉XD---比較Eclipse和JBuilder2005開啟速度

java日記 創造我的第一個exe檔 XD

其實學程式真正覺得很酷
我想應該是可以寫出一些東西八
就像是加入自控社
可以有機會做出一些東西
一些電路板等等的
會跑會動的東西
學程式語言也希望可以寫出一些很酷的東西XD
一兩個禮拜前翻課本發現後面可以跑出視窗&圖
就讓我有一些興趣偷偷的把程式碼照打上去
就跑出來同樣的東西
酷耶
可是平常沒有可以開JAVA的東西
所以我今天想找可以開.java檔的東西
沒想到搜尋當中有說可以轉成.exe
這又引起我興趣了XD
想我們玩了這麼久的小遊戲都是.exe檔
要是可以寫一個自己的.exe檔好像很酷
就開始了轉.exe檔之路
一番奮鬥
決定用JBuilder匯出.jar

JSmooth



再用JSmooth轉成.exe
還可以自己決定icon(圖示)
那個Exponential的圖示這樣看還頗可愛的XD





偷偷把作業的功能放進去






好酷耶!!!





可以自己寫一個小算盤了XDDDD






學JAVA
可以是為了分數
可以是為了將來
也可以單純覺得很酷!!!

2007年10月26日 星期五

Homework 10-26-2007



Lab average income by gender

Write a program to calculate average income by gender based on the following data, where F stands for female and M for male.

F 62,000
M 25,000
F 38,000
F 43,000
M 65,000
M 120,000
F 80,000
M 30,100

You should be able to allow users to type in a whole line such as F 80,000 followed by next line M 30,100.

第一組資料的輸出







Without any change made to your program, your program should be able to process a new set of data, such as follows:

M 52,000
M 35,000
F 48,000
M 33,000
F 75,000
F 110,000
F 90,000
M 30,100

第二組資料的輸出


Lab Exponential Function


Do Project 7 of Chap. 3. (2nd ed. & 3rd ed.) or Project 4 (1st ed.)

Hint: You don't have to use nested loops.


網路上的定義
可以發現e的一次方為2.71828
當n等於1的時候輸出只有1
1^1/1=1

接著照題目要求輸入n=10
我們可以發現到了第七項

就能得到2.7183這個趨於穩定的值
那接下來的50和100自然也是
再第七項以後基本上就趨於穩定


Lab 9*9


Write a program to generate the following table of arithmetic expressions

1*1=1 1*2=2 1*3=3 ... 1*9=9
2*1=2 2*2=4 2*3=6 ... 2*9=19
...
9*1=9 9*2=18 9*3=27 ... 9*9=81

2007年10月25日 星期四

Lab Fibonacci numbers


Do Project 3.3 (1st ed.) or Project 6 (2nd ed. & 3rd ed.) Fibonacci numbers.
List the first 100 numbers and the ratio of
a number to its previous number.

Want to know more about Fibonacci number

2007年10月12日 星期五

Homework 3-26-2007: Finding the max and the min

Based on your study of Display 3.8, write a code to find the max and min of a list of number.
For example, given 1,3,5, and9, the max is 9 and the min is 1.
Your program should be able to process a list of any length.


第一次先用三個數值



第二次用10個數值
所以可以自由更改要比較多少數值