Question
public class Week3Program { public static void main (String[] args) { System.out.println(LET'S MAKE PEANUT DRAW STUFF!); //**TODO: Finish the code below to create a World
public class Week3Program { public static void main (String[] args) { System.out.println("LET'S MAKE PEANUT DRAW STUFF!");
//**TODO: Finish the code below to create a World named shell shell = new World(); //**TODO: Finish the code below to create a Turtle named peanut peanut = new Turtle(shell); //**TODO: Fix the line of code below to make peanut turn 90 degrees right turtle.turn(90); //**TODO: Fix the line of code below to make peanut move forward 200 turtle.forward(100); //**TODO: write one line of code below to make peanut turn right 90 degrees //**TODO: write one line of code below to make peanut move forward 200 //**TODO: write one line of code below to make peanut turn right 90 degrees //**TODO: write one line of code below to make peanut move forward 200 //**TODO: write one line of code below to make peanut turn right 90 degrees //**TODO: write one line of code below to make peanut move forward 200 //**TODO: write one line of code below to pick up peanut's pen //**TODO: write one line of code below to make peanut move forward 50 //**TODO: write one line of code below to put down peanut's pen //let's change peanut's pen color to cyan - leave this line of code as is peanut.setPenColor(Color.cyan); //**TODO: write one line of code below to make peanut move forward 200 //**TODO: write one line of code below to make peanut turn right 90 degrees //**TODO: write one line of code below to make peanut move forward 200 //**TODO: write one line of code below to make peanut turn right 90 degrees //**TODO: write one line of code below to make peanut move forward 200 //**TODO: write one line of code below to make peanut turn right 90 degrees //**TODO: write one line of code below to make peanut move forward 200 System.out.println("PEANUT DREW STUFF!"); //That's it! Leave this code as is. You'll see it print in the Interactions tab when you click Run.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started