Question: 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

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
Get step-by-step solutions from verified subject matter experts
