Question: TASK: Program Reeborg to run a mile long super hurdles race. (Recall that eight blocks equal one mile.) The super hurdles course is similar to

TASK: Program Reeborg to run a mile long super hurdles race. (Recall that eight blocks equal one mile.) The super hurdles course is similar to the hurdle race, but here the barriers can be one, two, or three blocks high. The figure below shows one sample initial situation, where Reeborgs final situation and path are indicated on the right.

TASK: Program Reeborg to run a mile long super hurdles race. (Recall

IMPLEMENTATION NOTES: Model your program after the hurdles race example from lecture; this is an exercise in adaptive maintenance. A file containing the hurdles race code from lecture is available in $PUB/superstart.py Use only the Python statements covered so far; this corresponds to items #1 through #14 of the Reeborg the Robot Programming Summary. (Do NOT use any looping constructs. Also, do NOT use any recursion; that is, 1 no functions call themselves.) Do all your work in the OLA directory. Use as your source file name superhurdles.py

Initial Situation Final Situation L 1 2 3 4 5 6 7 8 9 10 AV. 1 2 3 4 5 6 7 8 9 10 AV

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!