The code currently draws a square. Change it so that it draws a triangle. Do so by modifying the loop and the turn that the turtle makes without modifying other code.
Write the correct recipe to fill in the ____________ in the code below to generate the pattern 5, 25, 45, … 105. Use the smallest possible value for your stopValue.
We want to make a series of rectangles such that the first one is 10x90, the next is 20x80, the next is 30x70, … until we draw one that is 90x10. Doing so will make a “staircase grid” like the one shown below:
Below is a program with rectangle already defined. Add code that uses a for loop to call the procedure with the correct values for its parameters. Make sure that the 90-width and 10-height rectangle is the first one you draw. You should only need one loop and it must count down from 90 to 10.
Next, for each width, calculate the corresponding height. Each width/height pair should always add to 100, so if we call the width \(w\text{,}\) the height must be \(100 - w\text{.}\) Print out the height with the width so that your output looks like 90 10, 80 20, 70 30, …, 10 90.