Question: The solution needs to work for ANY other worlds with hurdles given. SUTURI The Super Hurdles Race Task OLA 102 Exercise Due: February 9, 2021

The solution needs to work for ANY other worlds with hurdles given.

The solution needs to work for ANY other worlds with hurdles given.

SUTURI The Super Hurdles Race Task OLA 102 Exercise Due: February 9, 2021 (Due by the beginning of class.) NOTE: Immer wieder betale TASK: Program Reeborg to run a mile long super burdles race. (Recall that cight blocks equal ope mile.) The super burdles course is similar to the burdle race, but bere the barriers cun be one, two or three blocks bigh. The figure below shows one sample initial situation, whicre Recborg's final situation and path are indicated on the right. Irwin ST ST 6 . 1 1 2 3 4 5 6 7 8 9 10 AY 1 2 3 4 5 6 7 8 9 10 A IMPLEMENTATION NOTES: Model your program after the hurdles tice example from lecture; this is an exercise in adaptive maintenance. (A file containing the hurdles race code from lecture is availuble as $PUB/ola102start.py.) Use only the Python statements covered so far, this corresponds to items #1 through #14 of the Reeborg the Robot Programming Summary" bandout. (Do NOT use any looping constructs. Also, do NOT use any recursion; that is, no functions call themselves.) Do all your work in the OLA directory. Use as your source file name 'superhurdles.ps'. TEST SITUATIONS: The situation (world) you will use in testing your program is 'superhurdles.wld', which can be copied from $PUB using the comunand Scp $PUB/superhurdles.wld superhurdles.wid (Note: In this test situation the hurdles are placed differently than in the sample illustration above. Also, although you will be testing your program only against this one situation, your progrun logic must be able to complete the task under ALL legal initial situations to be considered correct. In other words, your program should correctly run any milc long super hurdles race, regardless of barrier placement.) TIP: Click the reset world icon before rerunning a program to be sure Reeborg starts in the same initial situation. REQUIRED: You are to electronically submit the source program and a screenshot of the outcome obtained from running your program against the provided test world. Once you are sure your program is working (and don't forget to check you've updated the comments!), run your program against superhurdles.wld. SUTURI The Super Hurdles Race Task OLA 102 Exercise Due: February 9, 2021 (Due by the beginning of class.) NOTE: Immer wieder betale TASK: Program Reeborg to run a mile long super burdles race. (Recall that cight blocks equal ope mile.) The super burdles course is similar to the burdle race, but bere the barriers cun be one, two or three blocks bigh. The figure below shows one sample initial situation, whicre Recborg's final situation and path are indicated on the right. Irwin ST ST 6 . 1 1 2 3 4 5 6 7 8 9 10 AY 1 2 3 4 5 6 7 8 9 10 A IMPLEMENTATION NOTES: Model your program after the hurdles tice example from lecture; this is an exercise in adaptive maintenance. (A file containing the hurdles race code from lecture is availuble as $PUB/ola102start.py.) Use only the Python statements covered so far, this corresponds to items #1 through #14 of the Reeborg the Robot Programming Summary" bandout. (Do NOT use any looping constructs. Also, do NOT use any recursion; that is, no functions call themselves.) Do all your work in the OLA directory. Use as your source file name 'superhurdles.ps'. TEST SITUATIONS: The situation (world) you will use in testing your program is 'superhurdles.wld', which can be copied from $PUB using the comunand Scp $PUB/superhurdles.wld superhurdles.wid (Note: In this test situation the hurdles are placed differently than in the sample illustration above. Also, although you will be testing your program only against this one situation, your progrun logic must be able to complete the task under ALL legal initial situations to be considered correct. In other words, your program should correctly run any milc long super hurdles race, regardless of barrier placement.) TIP: Click the reset world icon before rerunning a program to be sure Reeborg starts in the same initial situation. REQUIRED: You are to electronically submit the source program and a screenshot of the outcome obtained from running your program against the provided test world. Once you are sure your program is working (and don't forget to check you've updated the comments!), run your program against superhurdles.wld

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!