Roomba - Vacuums a room Size may be 0(small 1(medium or...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Roomba class Constructor: void Roomba() Methods: void turnLeft(int degrees); Turns roomba to the left a certain number of degrees. void turnRight(int degrees); Turns roomba to the right a certain number of degrees. void moveForward(int feet); Moves roomba forward a certain number of feet. void vaccuumRoom(int size);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Vacuums a room. Size may be 0 (small), 1 (medium), or 2 (large). void goToDock(); Moves roomba back to its dock to recharge. int powerLeft(); Reports how much power is left - 0 is none, 1 is less than 30%, 2 is less than 50%, and 3 is more than 50%....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online