Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ENEE 101 Spring 2021 HW2 due on 21/2/2021 at 10 PM HW total grade: 10 points Use the HW template given to you by the
ENEE 101 Spring 2021 HW2 due on 21/2/2021 at 10 PM HW total grade: 10 points Use the HW template given to you by the instructor for each question. Put the HW number, your name in English, and the university ID in the specified place in the header. Do not change anything else in the header. Make a python file for each question. The name of the file must be HW_N_M.py, where N is the HW number and M is the question number. For example, HW_1_1.py is the file for HW 1 question 1. Submit only a zip file containing all the python files. Make sure the code runs without any bugs or errors. If there is an error in the code, the grade will be zero. Warning: if any kind of cheating is detected, both students will receive zero in HW and more punishment maybe decided Note: Do not include any text with the color blue. 1) Write a code using turtle. The code should let the user drive the pen with turtle.pendown(). The code should ask the user (input function) where the next position of the pen (turtle) is while providing the current position. For example, The current position is (0,0). Please choose the next position:-100, 50 The current position is (-100, 50). Please choose the next position: 100,20 (5 points) 2) Let the user change the settings when the input is -1000, -1000. The settings are the color, the pen size, and reset. For example, The current position is (0,0). Please choose the next position: -1000, -1000 Changing setting: Please input the color (red, green, blue, or black): red Please input the pen size: 5 Would you like to reset the screen (yes or no): yes Settings has been changed: The current position is (0,0). Please choose the next position: 50,50 (5 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started