Java Reference
In-Depth Information
6. (continued)
a. Physical movement:
(1) Move to next cell. (The mouse will move in the direction it is facing.)
(2) Turn right.
(3) Turn left.
(4) Turn around 180 degrees. (All turns are made in place, without moving to another cell.)
(5) Halt.
b. Logic:
(1) Facing a wall? (Through this test, the mouse determines whether a wall is immediately in
front of it, that is, on the border of the cell it is occupying and in the direction it is facing.)
(2) Outside the maze?
(3) On the entry side?
(4) On the exit side?
7. Develop a detailed class diagram for an electric dishwasher. List at least eight attributes,
including number of racks, model, and color. List at least six methods, including addDishes()
and addDetergent().
8. Develop a high-level class diagram that shows the relationships among a manufacturer's inventory
of finished products in its warehouses. The company has many warehouses that are managed
by the inventory-control supervisor. Each warehouse contains many bins of products. Each bin
contains one product type.
9. Develop a sequence diagram that shows how the inventory-control supervisor in assignment 8
assigns a product to a bin in a warehouse.
Search WWH ::




Custom Search