星期五, 6月 12, 2009
星期日, 6月 07, 2009
Quiz 6.8.2009
1. Design a static method that can compute the addition of fractions. You must first define Fraction class then write a demo program to verify the class program.
2. Design a non-static method that can compute the addition of fractions. You must first define Fraction class then write a demo program to verify the class program.
3. 列舉至少三個Java記憶體管理的特性
4. 列舉至少三個Java程式的風格
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 odd numbers between 1 and 25.
7. 列舉至少三個 API (Application Programming Interface).
8. 列舉 ADT (Abstract Data Type) 的特性.
9. Write a Java program to calculate the cosine function as follows:
Cos(x)=1 - x 2 /2!+ x 4/4!- x 6/6!...
10. Write a Java program to calculate the sin function as follows:
sin(x)=x - x 3/3! + x5/5! - x7/7! ...
11. 請解釋 public static final PI = 3.141592654 中, public, static, final 的意義。
12. 為什麼 static method 不能呼叫 nonstatic method?詳細說明之。
13. 舉三個例子 Object
14. 舉三個例子 Method
2. Design a non-static method that can compute the addition of fractions. You must first define Fraction class then write a demo program to verify the class program.
3. 列舉至少三個Java記憶體管理的特性
4. 列舉至少三個Java程式的風格
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 odd numbers between 1 and 25.
7. 列舉至少三個 API (Application Programming Interface).
8. 列舉 ADT (Abstract Data Type) 的特性.
9. Write a Java program to calculate the cosine function as follows:
Cos(x)=1 - x 2 /2!+ x 4/4!- x 6/6!...
10. Write a Java program to calculate the sin function as follows:
sin(x)=x - x 3/3! + x5/5! - x7/7! ...
11. 請解釋 public static final PI = 3.141592654 中, public, static, final 的意義。
12. 為什麼 static method 不能呼叫 nonstatic method?詳細說明之。
13. 舉三個例子 Object
14. 舉三個例子 Method
星期五, 6月 05, 2009
星期一, 6月 01, 2009
Homework 6-1-2009 Modular Sorting
Write a sort method which takes a double array as parameter
and returns the sorted array. Call this method in a main program.
Hint: The lab is a rewriting of Lab Sorting
to make the sorting procedure a reusable method.
and returns the sorted array. Call this method in a main program.
Hint: The lab is a rewriting of Lab Sorting
to make the sorting procedure a reusable method.
星期二, 5月 26, 2009
第二次小考 預告 6/8/2009
第一次小考答對6題(含)以上者,不須參加第二次小考。
Format: closed book, no computer, simple problem
Running time: 45 min.
Scope: Chap.4~Chap. 5
歷年小考
Format: closed book, no computer, simple problem
Running time: 45 min.
Scope: Chap.4~Chap. 5
歷年小考
訂閱:
文章 (Atom)