Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Who responds to your customers complaint letters?

Answered: 1 week ago

Question

=+2 Why did OBI create Centers of Excellence?

Answered: 1 week ago