Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 7.3 (Extra credit) Write a JavaScript program which will simulate turtle graphics. You will use two dimensional array to represent a floor of 20

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Exercise 7.3 (Extra credit) Write a JavaScript program which will simulate turtle graphics. You will use two dimensional array to represent a floor of 20 x 20. The commands that you can give to the turtle is Command meaning Pen up Pen down Turn right Turn left 1 2 4 Two commands means move forward 12 spaces. You can specify how many steps by change 12 to that value. For example 5, 3 means you enter 5 press the 5, 12 Print the 20 x 20 array End of data Your program will list the commands and their meaning. There are one textbox for user to enter command number, two buttons: one for send command, the other one for process the commands sent. The following shows the screen shot

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

Step: 3

blur-text-image

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

How has Magic Moments changed over time?

Answered: 1 week ago