星期一, 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.

Homework 3-20-2006 Lab Fibonacci Numbers

Do Project 3.3 Fibonacci numbers.
List the first 100 numbers and the ratio of
a number to its previous number.

Want to know more about Fibonacci number