星期一, 6月 16, 2008

Quiz 4  成績

List of those who did not pass, with scores less than 1/2
9326361
9226119
9426261
9526202
9526208
9526150
9526350
9526248
9426235
9526349

中原大學電子系輔具科技夏令營 2008

你想過你正在學的電子專業可以為弱勢的人服務嗎?你想多了解無線行動運算與服務運算最新趨勢嗎?

邀請熱情的妳/你參加中原大學電子系輔具科技夏令營 2008,結合先端科技為弱勢服務,就從這裡開始。

報名:請在意見區寫上姓名即可。

Quiz 4

1. Write a Java program to calculate the trianular function as follows:
Cos(x)=1 - 2!/x 2 + 4!/x4 - 6!/x6 ...

2. Write a Java program to calculate the sin function as follows:
sin(x)=x - 3!/x 3 + 5!/x5 - 7!/x7 ...

3. Design a non-static method that can compute the product of complex numbers. You must first define Complex class then write a demo program to verify the class program.

4. Design a static method that can compute the product of complex numbers. You must first define Complex class then write a demo program to verify the class program.

5. Let i, j be two integers. Write a Java program to exchange their values. Please make sure you have good styles of making comments, naming variables, and indenting.

6. Write a complete Java program that uses a for loop to compute the sum of the even numbers between 1 and 25.

7. Explain API and ADT.

8. Explain programming styles and naming conventions

星期一, 6月 09, 2008

Lab Magic Parking Tower

A parking tower is out of order someday. If you park a Benz, you will end up with a Torben. Write a program to simulate this scenario. First create a class called CarParked which has a static method called outOfOrder. Name an object called yourCar, which happens to be a Benz. Your program should contain a class called CarParked and a test program called CarParkedDemo which test the method by CarParked.outOfOrder(yourCar).

Hint: You may study Display 5.14 to get some ideas.

Lab Static method

Define a Complex class with a static method for computing complex addition. Use (2+3i)+(4+5i) in your test.

Last Quiz 6/16

Format: closed book
Running time: 45 min.
Scope: Chap.1~Chap. 5

歷屆試題

期末報告

到圖書館挑選二本Java課本,寫下這些書名與作者出版社與出版日期,每本書各挑選一個習題進行個人研究,說明以下

  • 你為什麼挑選這個習題(只有題目,沒有範例或解答),
  • 這個習題讓你學到什麼概念,
  • 請你製作一個講義說明這個習題。


Due: 6/29/2008 at 18:00

程式 & 生涯

國外公司如微軟,Google應徵新人會考程式,國內手機, NB, GPS大廠其實也類似,最近我們的學生找Firmware Engineer工作,臨時被考程式能力。有些研究所的甄試在複試時也是當場測驗程式。

人不是生下來就會寫程式,所以具備熱情去學習在我看來是最重要的了,事實上,不只是寫程式,熱情已經是專業的一部份,我們常常可以在專業的表現中看到人們所投注的熱情。有興趣可以參考我的部落格寫程式熱情

我有話要說

如果你覺得這學期Java 功課表現尚不滿意,你可以在部落格上自由發揮,用你覺得比較好的方式告訴別人,其實我已經學好 Java ,我會閱讀你所書寫。

前人告白

本學期最後兩次上課

  • 可能會加強點名
  • 將登記未攜帶課本者,作為平時分數參考。

Homework due 6/16/2008

Enter

星期五, 6月 06, 2008

叮嚀

使用正版教科書,勿非法影印書籍及教材,以免侵犯他人著作權

星期二, 6月 03, 2008

作業與Lab成績

作業缺少ㄧ次扣Homework 總分5分
Lab 缺少ㄧ次扣Lab 總分3分

總成績配分方式

6/9 請攜帶課本

將登記未攜帶課本者,作為平時分數參考。

小考至少兩次不及格且至少ㄧ次0分

9526202
9526208
9526214
9526232

9526150
9326361
9226119

Quiz 3

通過名單

9527118
9527129
9527158

9526238
9526240
9526261
9526319
9526350
9526353
9426231
9326263
9325120
9325146
方彥順

Quiz 6-16-2008

Format: closed book
Running time: 45 min.
Scope: Chap.1~Chap. 5

歷屆試題

Homework 6-02-2008

第二次隨堂測驗中答錯的項目重做。

星期一, 6月 02, 2008

Lab Java Constructor

Use Display 4.14 to call 4.13 (2nd ed.) or
Display 4.12 to call 4.11 (1st ed.).

After you finish the above, try the following

Date birthday = new Date("Jan",1,2000);
birthday.Date("Feb",1,2000);
birthday.setDate("Feb",1,2000);
birthday=new Date("Mar",1,2000);

Quiz 6-2

1. Define a class called Counter whose objects count things. An object of this class records a count that is a nonnegative integer. Include methods to set the counter to 0, to increase the count by 1, and to decrease the count by 1.

2. Define a Complex class with complex addition.

3. What is Abstract Data Type (ADT)?

4. What is "Overloading"? Why is it useful?

5. Write a program to implement a method that can do additions of 2 fractions. You will implement a class called Fraction consisting of a numerator and a denominator.

6. Design a method that can compute the vector inner product. You must define Vector class in the first place. Write a demo program to verify your program works.