In this problem, your goal is to make Clara move around and remove some leaves so that your initials emerge from the empty cells as shown in Figure 1. The letters can be as big or small as you like and have any form (as long as they are recognisable as letters). Figure 1 shows the initial world and Figure 2 shows how the result would like like if your first name starts with the letter "A" and your last name starts with the letter "B". Note! Please make sure that what you draw are your initials (not AB or something else). Markers would check your name and if the initials don't match then your mark will be 0 points.

University/Course: WSU

Uploaded: November 2, 2024

Files: 1

✓ Solution:

/* PERMITTED COMMANDS
   move(); turnLeft(); putLeaf(); removeLeaf();
*/
class MyClara extends Clara {
    /**
     * In the ‘run()’ method you can write your program for Clara 
     */
    void run() {
        // TODO: Write your code below
        move();
        turnLeft();
        turnLeft();
        turnLeft();
        move();
        move();
        removeLeaf();
        move();
        removeLeaf();
        move();
        removeLeaf();
        move();
        removeLeaf();
        move();
        removeLeaf();

🔒 Whatsapp us for the full file.