Help with Java task (Karel)

Question Description

I have a question regarding Java. My task is Problem #9 on this paper ( (Disregard the answer; it is incorrect for my problem). My goal is to do a figure 8 with as less commands as possible (Commands are move (); , turnLeft (); even if I make a method such as turnRight (); with 3 turnLeft(); commands it counts as 3 commands). I know how to solve the problem; I can make the figure 8, but what is the way that uses the least commands? Thanks.

Final Answer

If you type out all that you need you could figure out how to combine some of the source code to make your own methods to do the same thing. To do a figure 8 it would have to be 2 squares touching each other (top one and one directly below it touching the bottom part of the top one). I hope this helps. Let me know if you need more information

techandy1 (39)
Duke University

I was on a very tight deadline but thanks to Studypool I was able to deliver my assignment on time.

The tutor was pretty knowledgeable, efficient and polite. Great service!

I did not know how to approach this question, Studypool helped me a lot.


Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors