2008年9月26日 星期五

Lab: Simple Arithmetics 9/26

ex:
Write a Java program that displays the results of the expressions 15/4, 4/15, 15%4, 4%15. Calculate the values of these expressions manually to verify that the displayed values are correct.



Lab: Simple Calculation 9/26

ex:
Suppose you are a landscape architect who charges $5,000 per mile to landscape a highway, and suppose you know the length in feet of the high way you are working on. Write a Java program to calculate the price you charge when the length is 6000 and 4000, respectively.

Hint: There are 5280 feet in a mile.

2008年9月25日 星期四

Homework 9/19/2008

1. Explain bytecode, JVM

The java compiler translates your program into a language called byte-code,which is the machine language for a fictitious computer.It is easy to translate this byte-code into the machine language of any particular computer.Each type of computer will have its own interpreter that translates and executes byte-code instructions.

Byte-code is the machine language for a fictitious computer called the Java Virtual Machine.

2. Explain class, object

Object-orirnted programming has its own specialized terminology.The object are called,appropriately enough,object.Object of the same kind are said to have the same type or,more often,are said to be in the same class.


3. Reading Assignments:

Read 1.1, 1.2, 1.3 of Textbook


4.1














4.2













4.3

2008年9月19日 星期五

2008年9月12日 星期五

平常沒有用BLOG的習慣!!!!


Jesus Crys!!!!!!