Professional Documents
Culture Documents
Assignment #4
Assignment #4
selection for the movie poster. Why did you choose these shapes/objects?
I chose a rectangle, square, circle, ellipse, and star. I decided on these shapes because it
would be easier to code than a shape requiring more code than I had already written.
2. Your thought process in how you broke down the task, where you made use of the
I knew that I would have to create a Txt file, so I went ahead and made that for the user
input data to be stored. Next was setting up functions for the shapes to be drawn out.
After that, I set up some user input questions for the poster to write out the commands for
the movie. The next part, probably the most challenging, was getting the
userMoviePosterCommands.txt file to open and bringing the user input to transfer. After
those tedious steps, I coded the user input for drawing out the shapes and what they
specifically wanted to draw. This part was hard to program because I could not figure out
how to set the dimensions for the requested shapes. I used conditionals when drawing out
the shapes I had initially coded at the beginning. In this way, I could provide information
to the user so they could return and try to get the dimensions suitable for the shape they
wanted to draw.
3. Describe the issues you ran into for this assignment and your process in resolving
those issues.
The biggest challenge was writing the code's conditionals and the open file portion. I did
some studying from old examples in class and on youtube. Most errors I ran into were
indentation errors, no file found errors and comma errors. What I did was retrace my
One of the major takeaways I learned from Unit 4 was knowing how to utilize the open
file code and the file properly.write() commands. This project would have been
5. Were there any additional resources that you used besides the textbook and Turtle
documentation linked? If so, provide the links and description of what you used.
I did not know how to draw an ellipse, so I chose to google it and put a few codes
https://stackoverflow.com/questions/29465666/how-do-you-draw-an-ellipse-oval-in-turtl
e-graphics
For most of the conditionals, it was trial and error, but the code helped me tremendously