vefrabbit.blogg.se

Greenfoot play sound
Greenfoot play sound








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

  • Try putting the line of code in, and run.
  • Where can we put a call to this method so that it will stop the execution when the lobster eats the crab?.
  • In Method summary find a method that stops the execution of the running scenario.
  • Choose Greenfoot Class Documentation from the help menu.
  • String literals: Strings enclosed in double quotes.
  • Strings are characters (letters, numbers, symbols) that are put together to form words or sentences.
  • Greenfoot has a method to tell whether or not a key is being pressed: static boolean isKeyDown(String key) What is the return type? What is the method name? What is the parameter?.
  • This.Butterfly 2} (*) this.Butterfly * 2} this.Butterfly / 2} this.Keyboard Control Mrs. In Alice, which of the following programming statements moves the butterfly forward, double the distance to the tree? "I feel happy." If or Where 3x3=9 (*) None of the above Correct 13. Identify an example of an Alice expression. (Choose all correct answers) For opening a project. your Alice lessons, which of the followi ng are reason s why rando m numbe rs would be used by a compu ter? An Alice event is considered what?Ī party with at least 20 people. In Java, which symbol is used to assign one value to another? Which of the following does not describe variables?Ī place in memory where data of a specific type can be stored for later retrieval and use. In Alice, procedural abstraction is the concept of making code easier to understand and reuse. (*) It can allow subclasses of a superclass to use a procedure. (*) It allows many objects of a class to use the same procedure. It simplifies code and makes it easier to read.

    greenfoot play sound

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

    greenfoot play sound

    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.








    Greenfoot play sound