This site requires JavaScript, please enable it in your browser!
Greenfoot back
Vash_the_Stampede
Vash_the_Stampede wrote ...

2016/6/18

Need help with someone who has 2nd edition book

Vash_the_Stampede Vash_the_Stampede

2016/6/18

#
So apparently I bought the wrong book. There's a physical 2nd edition, and I'm already behind in class, and assingment is due today and I don't get my physcial copy until next thursday, all I need is to know what the sections 3.31 through 3.35 say in Chapter 3. I'm assuming its the stickman, but I need to know what exact requirements there is.
danpost danpost

2016/6/18

#
I almost just gave the pdf for chapter 3 (sample chapter in webpage for book); but, the Drill and practice section is not included. Calling class methods/if-statements Ex. 3.31: In your stickman scenario, make the stickman move to the right, so that when you run your scenario, he walks over to the right side of the screen. Ex. 3.32: Using an if-statement and the microphone input method you found above (Ex. 3.26 given below), make the stickman move right only when you make some noise. Experiment with different values for the noise level. This will depend on your microphone and your environment. A good starting point is to make him move when the microphone level is greater than 3. Test.
Ex. 3.26: The Greenfoot class has a method to get the noise level from the computer's microphone. Find this method in the API documentation. How many parameters does it have?
Ex. 3.33: Make the stickman move left when you make some noise, but move continuously right if there is no noise. Test. Try to keep him near the center of the screen by shouting. Defining methods Ex. 3.34: Move the code that moves left when you make noise into its own method. Call this method moveLeftIfNoise. Test. Make sure it works as before. Ex. 3.35: Add another method to your class called gameOver. This method should be called if the stickman reaches the edge of the screen. When called, the method plays a game-over sound and stops the scenario.
Vash_the_Stampede Vash_the_Stampede

2016/6/20

#
Hi DanPost, thank you for your help but i missed the deadline (not your fault they didn't post my question until after the due date anyway. My book doesn't come in til thursday and I have another assignment due today, is there any way you can tell me what chapter 4 4.35 says? its the last one, my next assignment is friday so i will have the book by then. thanks
danpost danpost

2016/6/20

#
Vash_the_Stampede wrote...
is there any way you can tell me what chapter 4 4.35 says?
This is what it says: Bouncing ball practice Ex. 4.35: Create a new scenario. In it, create a World and an Actor class called Ball. (Give it a ball-like image.) Program the ball so that it moves at constant speed and bounces off the edges of the world.
YG777 YG777

2016/10/7

#
How do you do those assignment, need help!!!! 3.34-3.37
You need to login to post a reply.