The Famous Bathtub_Test for Android Developers
****Input
===========
It is known that bath has a capacity of 150 litres to just below the overflow. This capacity allows a person to get in to the bath without water going down the overflow.
The cold water tap has a flow of 12 Litres per minute. at 10 degrees Celsius.
The hot water tap has a flow of 10 Litres per minute.
The temperature of the water is taken from the boiler web server which returns RESTful JSON. The test JSON is attached and should be run from a test web server http://localhost/bath.json.
Assumptions & Constraints
When either tap is on it is at full rate and constant temperature (There is no warm up time or reduced flow).
****Output
============
At any point in time the system should be able to show the capacity and temperature of the bath.
Assumptions & Constraints
The bath and your home are super-efficient and there is no cooling of the bath over time.
****Expected interface
============
It should be possible to turn on each tap individually via your touch screen. The interface should show the state of the bath at any time.
Bath.json:
{
"hot_water": 50,
"cold_water": 10
}
熱門國家 | 系統支援 | 版本 | 費用 | APP評分 | 上架日期 | 更新日期 |
---|---|---|---|---|---|---|
未知 | Android Google Play | 1.0 App下載 | 免費 | 1970-01-01 | 2015-04-22 |