2008年10月31日 星期五

Homework 10-24-2008

1. Write a program to generate the series 1, 1, 2, 3, 5, 8, 13, ...
The series has a property that the third number is the sum of the first and second numbers. For example, 2=1+1, 3=1+2, and 5=2+3.











2. Write a program to generate the following table of arithmetic expressions

1*1=1 1*2=2 1*3=3 ... 1*9=9
2*1=2 2*2=4 2*3=6 ... 2*9=19
...
9*1=9 9*2=18 9*3=27 ... 9*9=81




2008年10月24日 星期五

Lab Finding the max of a list of numbers1024












Lab Finding the max of a list of numbers

Lab Finding the max of three numbers1024










Finding the max of three numbers

1024 Lab tax











台灣稅制一百萬的情形















台灣稅制下兩百萬的情形

Homework 10-3-2008

1. Complete Lab Keyboad processing











3. Do Project 4 in Chapter 2











4. Do Project 5 in Chapter 2











5. Do Project 6, in Chapter 2











6. Do Project 7, in Chapter 2

Lab Scanner










Display2.6













Using BufferedReader to rewrite Display 2.6