2008年6月28日 星期六
2008年6月27日 星期五
期末報告
到圖書館挑選三本Java課本,寫下這些書名與作者出版社與出版日期,每本書各挑選一個習題進行個人研究,說明以下
- 你為什麼挑選這個習題(只有題目,沒有範例或解答),
- 這個習題讓你學到什麼概念,
- 請你製作一個講義說明這個習題。
Due: 1/11/2008 at 18:00

主題:BMI cacluate
出版項:臺北市 : 麥格羅希爾, 2002[民91]
1.你為什麼挑選這個習題
- 實用性高
- 看到題目就有大概的想法
- 做好可以給同學玩玩
2.這個習題讓你學到什麼概念
- Scanner
- if else
- BufferedReader
3.請你製作一個講義說明這個習題
主題:寵物登錄系統
-
書名:Java 2通識講義
-
-
-
出版項:臺北市 : 儒林, 1999[民88]
1.你為什麼挑選這個習題
- 做一個資料庫
- 有趣
- 挑戰比較難的題目
2.這個習題讓你學到什麼概念
- Scanner
- equal
- String ,toString
- array
3.請你製作一個講義說明這個習題
BMI cacluate
題目
請寫出一個程式可接受使用者輸入體重與身高 並計算出BMI值?
Body Mass Index (BMI) is a number calculated from a person weight and height. BMI provides a reliable indicator of body fatness for most people and is used to screen for weight categories that may lead to health problems.
w = 體重,單位:公斤;
h = 身高,單位:米;
請寫出一個程式可接受使用者輸入體重與身高 並計算出BMI值?
Body Mass Index (BMI) is a number calculated from a person weight and height. BMI provides a reliable indicator of body fatness for most people and is used to screen for weight categories that may lead to health problems.

h = 身高,單位:米;
........BMI...........Weight Status
......Below 18.5 ......Underweight
.....18.5 – 24.9 ..........Normal
......25.0 – 29.9 .......Overweight
..30.0 and Above .......Obese
2008年6月14日 星期六
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).





2008年6月9日 星期一
Lab Static method
Lab Java Constructor
2008年6月2日 星期一
訂閱:
文章 (Atom)