星期二, 4月 25, 2006

Homework 04-25-2006 (Java Overloading)

Study Display 4.11 and use Display 4.12 to call 4.11. (2nd ed.)

Study Display 4.9 and use Display 4.10 to call 4.9 (1st ed.)

星期一, 4月 10, 2006

Lab Class Definitions III

Do Display 4.7 (2nd ed.) or 4.5 (1st ed.). Then use Display 4.8 to call 4.7.

Requirements
1. The method setDate has the parameter as setDate(int month, int day, int year).
What kind of changes should be made in its body of codes?

Cookie

星期一, 3月 27, 2006

Lab Class Definitions II

Study Display 4.2 & Display 4.4 (2nd ed.) or Display 4.2 & Display 4.3 (1st ed.) and then
1. comment out date.setDate(6, 17, year); by // date.setDate(6, 17, year);
2. At the next line below, add date.readInput();
3. Run the program again. Fix any problems you may encouter along the way.
4. At the last line of your program, add System.out.println(date.month);
and see what happens. Why?

4/3 校外學習週停課一次, 4/17 期中考停課一次

Homework 3-27-2006 Lab Class Definitions

Study Display 4.1 and then do Exercise 1.

星期一, 3月 20, 2006

Lab Finding max from a list of numbers

Write a program that reads 10 numbers from the console.
Pick the largest bumber from the list.

Lab Exponential Funtion

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

Hint: This lab gets you familiarized with nested for loops.