Description: Programs depend upon proper modularization to foster code reuse. Create a nodularized turtle graphics program that draws one of two shapes at coordinates and of the size ndicated by the end user. Assignment: > Create a modularized turtle graphics Python program based upon the following: o Create a utility module in a separate PY file (see naming info below) that includes the following 4 functions: setup_window) setup_turtle() draw circle() draw square() o Create a Python program based upon the following: Import the drawing functions from the above utility module. Ask the end user for the following 4 data points, validating the first entry (See Figure 2 below for an example). • What shape they want to draw: 1 for square or 2 for circle What is the X coordinate for the shape's location What is the Y coordinate for the shape's location What is the size of the shape: length for square, radius for circle Draws the requested shape (See Figure I below for an example). • The drawing window should be a color not used in the other drawing elements. The drawing window should have an appropriate title. The program should continue to run until the user does not want to draw another shape (see example in Figure 2 below). > Upload your notebook and .PY code files to the appropriate Blackboard assignment link. o Reminder: You should have 2 files for this assignment! Tuming in just one file will cost you 50% of the assignment points. o Remember – no global variables are allowed! You must pass arguments and return values when needed. MIS 3300 Introduction to Computer Architecture and Programming Page 2 of 2
Description: Programs depend upon proper modularization to foster code reuse. Create a nodularized turtle graphics program that draws one of two shapes at coordinates and of the size ndicated by the end user. Assignment: > Create a modularized turtle graphics Python program based upon the following: o Create a utility module in a separate PY file (see naming info below) that includes the following 4 functions: setup_window) setup_turtle() draw circle() draw square() o Create a Python program based upon the following: Import the drawing functions from the above utility module. Ask the end user for the following 4 data points, validating the first entry (See Figure 2 below for an example). • What shape they want to draw: 1 for square or 2 for circle What is the X coordinate for the shape's location What is the Y coordinate for the shape's location What is the size of the shape: length for square, radius for circle Draws the requested shape (See Figure I below for an example). • The drawing window should be a color not used in the other drawing elements. The drawing window should have an appropriate title. The program should continue to run until the user does not want to draw another shape (see example in Figure 2 below). > Upload your notebook and .PY code files to the appropriate Blackboard assignment link. o Reminder: You should have 2 files for this assignment! Tuming in just one file will cost you 50% of the assignment points. o Remember – no global variables are allowed! You must pass arguments and return values when needed. MIS 3300 Introduction to Computer Architecture and Programming Page 2 of 2
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY