Define a Complex class with a static method for computing complex addition. Use (2+3i)*(4+5i) in your test.
將4/28的LAB稍作修改便能得出
2009年5月26日 星期二
2009年5月25日 星期一
Lab Magic Parking Tower
A parking tower is out of order someday. If you park a Benz, you will end up with a Torben. Write a program to simulate this scenario. First create a class called CarParked which has a static method called outOfOrder. Name an object called yourCar, which happens to be a Benz. Your program should contain a class called CarParked and a test program called CarParkedDemo which test the method by CarParked.outOfOrder(yourCar).
Hint: You may study Display 5.14 to get some ideas.
Hint: You may study Display 5.14 to get some ideas.
2009年5月11日 星期一
Lab Static Method
Lab Math methods
2009年5月4日 星期一
Lab Method Overloading
Homework 4-27-2009
Do project 2 of Chapter 4.
強烈要求同學一定要親自動手做,鼓勵同學將理論與實作密切配合。
相信只要同學真正的努力用功,縱使資質稍差,應該都可以學到Java程式設計之知識
強烈要求同學一定要親自動手做,鼓勵同學將理論與實作密切配合。
相信只要同學真正的努力用功,縱使資質稍差,應該都可以學到Java程式設計之知識
訂閱:
文章 (Atom)