Exercise 1.3Use a negative parameter value to move left, e.g.-70Exercise 1.9The House PictureThe main building:•Create a new Square object•Invoke its method makeVisible()•Make the square bigger by invoking the method changeSize(newSize) (100is a good size)•Move the square down by invoking the method moveVertical(distance)(again 80 is a good value)The window:•Create a new Square object.•Invoke its method makeVisible()•Change its color by invoking changeColor()•write "black" in the popupwindow•Move the square down by invoking the method moveVertical(distance)(100 is a good value)•Move it to the right by invoking moveRight()The roof:•Create a new triangle object.•Invoke its method makeVisible()•Change its size with changeSize(newHeight, newWidth) (50,140)•moveVertical(70)•moveHoizontal(60)The sun:•Create new Circle object.•Invoke its method makeVisible()•Change its color by invoking changeColor() (write "yellow" in the popupwindow) Optionally change its size with changeSize(60)•Move it to the right by invoking moveHorizontal(180)The Hilltop PictureThe hill:Preview Mode
This document has 126 pages. Sign in to access the full document!
