Name _______________________
     
Class 8 / Quiz 1

OO Programming in Java

 


1)

Design an object model and appropriate scenario diagrams for a home thermostat.

The system senses the ambient temperature and based on an algorithm determines to turn the air conditioner or heater on or off (probably not both on at the same time). I'm not concerened with the details of the algorithm

The key to this problem is the proceedure. I want to see a complete object model (instance variables, and methods) and a scenario diagram complete with method calls which match the OM.

Use the back of this sheet first, then additional sheets if necessary.

2)

We have some discretionary time remaining in the course what topics would you like to cover or spend additional time with?


Solution



Code