Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I am having trouble with coding using Alice 3. My assignment is this: I am struggling to come up with the code to execute

Hello, I am having trouble with coding using Alice 3. My assignment is this:

I am struggling to come up with the code to execute the homework assignment. Currently, I have this

image text in transcribed

Any help would be appreciated!

Ov Scene nitialize EventListeners myFirstMethod oid myFirstMethod) do in order Movement 1 Kick 1 Double E distanceToMove this.childPerson2 getDistanceToo this.soccerBali Double e widthofTheChild2 5 this.childPers getwidtho EE this soccerBallT getwidth0T Double E halfWidthofDistanceOfBall z Double E distanceBetweenTheBoys is.childPerson2 getDistanceTo( Chis.childPerson s.childPerson turn ToFace S.SoccerBa add deta distanceToMov distance ToM EhalfWidthofDistanceOfBall distanceToMove EsdistanceToMove WidthofTheChild2 this childPerson2 move Move Direction. FORWAR distance ToMov add detail T Double E distance is soccerBall T getDistanceTo( childPerso Ewidthof The Child Double E a a Randomutilities.nextDoublelnRange(s01T.E Edistance T SwidthofTheChild2 T) Samount ToMoveSoccer add detail S.SoccerBa move Move Direction.LE is soccerBal ove Direction LEFT Movement 2 Double E distanceToMove this childPerson getDistanceTo( this.soccerBali Double E halfWidthofDistanceOfBall EE this.soccerBaliT getwidtho I 2.0 Double E widthofchild1 E this.childPerson getwidth0 s.childPerson turn ToFace this. soccerBali add deta Double E distanceBetweenTheBoys >E Cthis.childPerson getDistanceTo( Cthis.childPerson2 distance ToMove EEdistance ToMove EhalfWidthofDistanceofBall do in order E Count do together each in together E variable assign while for each in //comment Ov Scene nitialize EventListeners myFirstMethod oid myFirstMethod) do in order Movement 1 Kick 1 Double E distanceToMove this.childPerson2 getDistanceToo this.soccerBali Double e widthofTheChild2 5 this.childPers getwidtho EE this soccerBallT getwidth0T Double E halfWidthofDistanceOfBall z Double E distanceBetweenTheBoys is.childPerson2 getDistanceTo( Chis.childPerson s.childPerson turn ToFace S.SoccerBa add deta distanceToMov distance ToM EhalfWidthofDistanceOfBall distanceToMove EsdistanceToMove WidthofTheChild2 this childPerson2 move Move Direction. FORWAR distance ToMov add detail T Double E distance is soccerBall T getDistanceTo( childPerso Ewidthof The Child Double E a a Randomutilities.nextDoublelnRange(s01T.E Edistance T SwidthofTheChild2 T) Samount ToMoveSoccer add detail S.SoccerBa move Move Direction.LE is soccerBal ove Direction LEFT Movement 2 Double E distanceToMove this childPerson getDistanceTo( this.soccerBali Double E halfWidthofDistanceOfBall EE this.soccerBaliT getwidtho I 2.0 Double E widthofchild1 E this.childPerson getwidth0 s.childPerson turn ToFace this. soccerBali add deta Double E distanceBetweenTheBoys >E Cthis.childPerson getDistanceTo( Cthis.childPerson2 distance ToMove EEdistance ToMove EhalfWidthofDistanceofBall do in order E Count do together each in together E variable assign while for each in //comment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

How does accounting help the capital allocation process?

Answered: 1 week ago

Question

2. Discuss various aspects of the training design process.

Answered: 1 week ago