Preston Decker's Third CS151 Homework

Explanations

  • 1.Our task was to use loops to create a row, and eventually a grid of shapes of differing types.
  • 2. So the outer for loop should give essentially the same result as my linear1.py file, while the inner for loop creates columns. I would imagine the inner and outer for loops need to agree with one another, otherwise you would have theinner loop putting one character in a column position, and the outer loop trying to place a different character there.

    3. My algorithm for linear works as it tells the computer to essentially run through each of my shapes under drawshape. The for function tells the computer to continue running through inputs in the aStringParameter function and the processString part of the main function inserts the names (in letter form) for my shape functions into the aStringParameter function. As many shapes are made in turtle as the number of letters I type in the processString part of the main function.

    For grid.py, the outer loop instructs the computer to create as many rows as the range species-11 in this case-. The inner loop then specifices the amount of characters or shapes for each row. FYI, the last row of shapes is a compilation of my shapes with Robin Daley. In addition, I owe Robin Daley and Mac Simpson thanks for help for my project and code for my project.