Question: 1. Create a program in JAVA where you can play with turtles. Draw a line on the screen using the turtle package. 2. Draw a

1. Create a program in JAVA where you can play with turtles. Draw a line on the screen using the turtle package.

2. Draw a square on the screen. Change its color. Make the line thicker by changing the pensize. Change the speed the turtle draws. 3. Its possible to move the turtle without drawing. Draw two squares on the screen that dont touch

1. Create a program in JAVA where you can play with turtles.

4. Create a recursive function spiral_square(size, space) that takes the length of the longest square (size) and the distance between each leg of the spiral (space) as parameters. Hint: Think about how the parameters change at each recursive step. Should either parameter stay the same? What's the base case? Test your functions by drawing two different squares. Now you're ready to tackle the assessment. To speed up testing, set the turtle speed to be 0. None of the turtle programs should take user input! 4. Create a recursive function spiral_square(size, space) that takes the length of the longest square (size) and the distance between each leg of the spiral (space) as parameters. Hint: Think about how the parameters change at each recursive step. Should either parameter stay the same? What's the base case? Test your functions by drawing two different squares. Now you're ready to tackle the assessment. To speed up testing, set the turtle speed to be 0. None of the turtle programs should take user input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!