Question: Programming questions 11-13 are worth 20 points each Question 11a (8 points) Write a function named halfSquare that uses turtle graphics to draw half of

Programming questions 11-13 are worth 20 points each Question 11a (8 points) Write a function named halfSquare that uses turtle graphics to draw half of a square on the screen. This involves drawing two lines of equal length, making a 90 degree turn after each. For full credit, these repeated operations should be performed in a loop. The function halfSquare takes two parameters i. t, a turtle that is used for drawing ii. length, the length of the lines The function halfSquare should begin drawing without changing the position or orientation of the turtle t. The turtle t that is passed to halfSquare may initially be either up or down and may be at any location on the screen and in any orientation. The figure at the right shows sample graphical output of halfSquare
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
