星期二, 6月 03, 2008

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.