Question: 5.1 a) Explain why the following procedure does not construct a rectangle. Modify the code in the procedure and write down a revised procedure that

5.1 a) Explain why the following procedure does not construct a rectangle. Modify the code in the procedure and

write down a revised procedure that can create an arbitrary rectangle. Also write a new one

rectangle procedure than that given below. It should contain one (or two) errors that your students must

identify and correct. Explain in writing where the error(s) you have inserted are and what your students need

understand to be able to correct it/these.

http://etl.ppp.uoa.gr/malt2/Manuals/MaLT+Tutorial.pdf


to rectangle :a :b :c :d

repeat 2 [fd :a rt :c fd :b rt :d]

end

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!