Question: Question 11A is attached for reference 5 of 7 Question 11B (10 points) Write a function named rhombuses that uses turtle graphics and the function
5 of 7 Question 11B (10 points) Write a function named rhombuses that uses turtle graphics and the function rhombus in question 11A to draw a sequence of rhombuses of specified size, position and orientation. The function rhombuses takes five parameters: 1. t, a turtle that is used for drawing 2. side 3. acuteAngle 4. count 5. rotation The function rhombuses should call the function rhombus (in Question 11A) repeatedly so as to draw count rhombuses, each with sides of length side and acute angle acuteAngle. Each rhombus should be oriented rotation degrees clockwise from the preceding rhombus. If rhombuses is called by the following code, this would be correct output: import turtle snappy turtle.Turtle() rhombuses (snappy, 60, 45, 5, 72) O Type here to search DOLL F4 F5 F6 F7 Esc F1 F2 F3 40 Question 11A (10 points) A rhombus is a parallelogram with four equal sides. It resembles the diamonds suit in playing cards. Here are the properties of a rhombus - opposit sides are parallel - all four sides have the same length - opposite angles are equal sum of any 2 adjacent angles is 180 degrees (a + 180 degrees) McA Write a function called rhombus that uses turtle graphics to draw a rhombus. The function rhombus takes three parameters: 1. t, a turtle that is used to draw the rhombus. The turtle t may initially be at any location on the screen and in any orientation and may be either up or down. ideo 2 side, an integer that is the length of a side of the rhombus. 3. acuteAngle, the smaller of the two angles a and p. The function rhombus should: 1. draw a rhombus, beginning at the initial position and orientation oft 2. leave t in its initial position and orientation when it returns For full credit, you must perform repeated operations using a loop For example, the following is an example of correct graphical output: import turtle snappy turtle. Turtle() Assen chombus(snappy, 10e, 45) O Type here to search DOLL F5 F6 F7 F8 F1 F2 F3 F4 Esc 5 of 7 Question 11B (10 points) Write a function named rhombuses that uses turtle graphics and the function rhombus in question 11A to draw a sequence of rhombuses of specified size, position and orientation. The function rhombuses takes five parameters: 1. t, a turtle that is used for drawing 2. side 3. acuteAngle 4. count 5. rotation The function rhombuses should call the function rhombus (in Question 11A) repeatedly so as to draw count rhombuses, each with sides of length side and acute angle acuteAngle. Each rhombus should be oriented rotation degrees clockwise from the preceding rhombus. If rhombuses is called by the following code, this would be correct output: import turtle snappy turtle.Turtle() rhombuses (snappy, 60, 45, 5, 72) O Type here to search DOLL F4 F5 F6 F7 Esc F1 F2 F3 40 Question 11A (10 points) A rhombus is a parallelogram with four equal sides. It resembles the diamonds suit in playing cards. Here are the properties of a rhombus - opposit sides are parallel - all four sides have the same length - opposite angles are equal sum of any 2 adjacent angles is 180 degrees (a + 180 degrees) McA Write a function called rhombus that uses turtle graphics to draw a rhombus. The function rhombus takes three parameters: 1. t, a turtle that is used to draw the rhombus. The turtle t may initially be at any location on the screen and in any orientation and may be either up or down. ideo 2 side, an integer that is the length of a side of the rhombus. 3. acuteAngle, the smaller of the two angles a and p. The function rhombus should: 1. draw a rhombus, beginning at the initial position and orientation oft 2. leave t in its initial position and orientation when it returns For full credit, you must perform repeated operations using a loop For example, the following is an example of correct graphical output: import turtle snappy turtle. Turtle() Assen chombus(snappy, 10e, 45) O Type here to search DOLL F5 F6 F7 F8 F1 F2 F3 F4 Esc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
