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...
icon
Related questions
Question
Objective: For this assignment, you will demonstrate that you can create a modularized turtle
graphics program that responds correctly to validated user input. This will include following
proper naming, formatting and style conventions.
Description: Programs depend upon proper modularization to foster code reuse. Create a
modularized turtle graphics program that draws one of two shapes at coordinates and of the size
indicated 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 cirele
• 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
Figure 1-Example Output
Transcribed Image Text:Objective: For this assignment, you will demonstrate that you can create a modularized turtle graphics program that responds correctly to validated user input. This will include following proper naming, formatting and style conventions. Description: Programs depend upon proper modularization to foster code reuse. Create a modularized turtle graphics program that draws one of two shapes at coordinates and of the size indicated 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 cirele • 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 Figure 1-Example Output
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY