星期一, 4月 30, 2007
Lab Class Definition 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?
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?
星期日, 4月 22, 2007
星期一, 4月 16, 2007
Homework 4-16-2007: 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?
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月 09, 2007
Lab Exponential Funtion
Do Project 7 of Chap. 3. (2nd ed.) or Project 4 (1st ed.)
Hint: You don't have to use nested loops.
Hint: You don't have to use nested loops.
Lab Fibonacci numbers
Do Project 3.3 (1st ed.) or Project 6 (2nd ed.) Fibonacci numbers.
List the first 100 numbers and the ratio of
a number to its previous number.
Want to know more about Fibonacci number
List the first 100 numbers and the ratio of
a number to its previous number.
Want to know more about Fibonacci number
訂閱:
文章 (Atom)