Write a two-sided joke, spacing each line as follows:
| Sheep 1: Baa! | |
| Sheep 2: Woof, woof! | |
| Sheep 1: Why did you say woof woof instead of baa? | |
| Sheep 2: I'm learning a foreign language. |
The diagram on the right shows a crudely drawn tree - a triangle balanced on a small rectangle with the dimensions shown. Write a method which draws this tree at a specified point on the screen. The method should take two parameters - an x co-ordinate and a y co-ordinate, representing the position of the highest point of the triangle.
Create another method which uses your first one to draw a "forest" of 10 trees at 10 positions on the screen. Your trees may "overlap" if you like.