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

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

down a revised procedure that can create an arbitrary cube. Also write a new cube procedure than that which

specified 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 to understand in order to correct them

it/these.

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


to square :a

repeat 4 [fd :a rt 90]

end


to cube :a :b

repeat 4 [square :a fd :a down :b]

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!