
When lobster eats crab, call aySound (“au.When crab eats worm, call aySound (“slurp.wav”).There are 2 sound files included in the crab scenario.True or false Mark for Review (1) Points True () False Correct 34. From your Greenfoot lessons, the reset button resets the scenario back to its initial position. Look at the Greenfoot documentation and find the method that is used to play sound. In the following Greenfoot method signature, which is the method name void turnLeft () Mark for Review (1) Points () void turnLeft () Left Correct 33.Put Greenfoot.stop() line in the Lobsters lookForCrab method, after it “eats” crab.The crab is removed and the game should stop when the Lobster eats the crab.If it doesn’t work, try somewhere else.
GREENFOOT PLAY SOUND CODE

(Choose all correct answers) It makes the animation easier to run.

In Alice, which of the following are benefits of separating out motions into their own procedures? (Answer all questions in this section) 6. In Alice, declaring a new procedure to shorten code and make it easier to read is a procedural abstraction technique. In Alice, the setVehicle procedure will associate one object to another. In Alice, the procedures' arguments allow the programmer to adjust the object, motion, distance amount, and time duration. In Alice, Do In Order and Do Together:Īre move statements Are control statements (*) Are complex statements None of the above Incorrect. GetObject getDuration getDepth getDistance (*) Correct 2. In Alice, which function is used to move an object directly to the center point of another object? (Answer all questions in this section) 1.
