Write an interactive program that gives you the option to generate one of the turtle graphics images. The program should prompt the user for a value between 1 and 5 and generate a corresponding turtle graphics image. If the user enters Q or q the program should terminate. If the user enters anything else appropriate error messages should be displayed.
Write an interactive program that gives you the option to generate one of the turtle graphics images. The program should prompt the user for a value between 1 and 5 and generate a corresponding turtle graphics image. If the user enters Q or q the program should terminate. If the user enters anything else appropriate error messages should be displayed.
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 18RQ
Related questions
Question
Write an interactive
![Project 2
Portier
Deliverable
Write an interactive program that gives you the option to generate one of five turtle graphics
images. The program should prompt the user for a value between and 5 and generate a
corresponding turtle graphics image. If user enters Q or ų the program should terminate. If the
user enters anything else an appropriate error message should be displayed.
Functional Requirements
1. Interaction with the user should be done in the shell. The turtle graphics image should
be in the turtle graphics window.
2. The complexity and attractiveness of the image generated is up to you and will not add
to or diminish your grade.
3. The program should not erash even if the user types in Control-C.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0022691e-c1b5-4a32-8229-ed7f8b260512%2F4608c2f4-4c61-408d-ae9a-61435b7fff2a%2Ffep91zg_processed.png&w=3840&q=75)
Transcribed Image Text:Project 2
Portier
Deliverable
Write an interactive program that gives you the option to generate one of five turtle graphics
images. The program should prompt the user for a value between and 5 and generate a
corresponding turtle graphics image. If user enters Q or ų the program should terminate. If the
user enters anything else an appropriate error message should be displayed.
Functional Requirements
1. Interaction with the user should be done in the shell. The turtle graphics image should
be in the turtle graphics window.
2. The complexity and attractiveness of the image generated is up to you and will not add
to or diminish your grade.
3. The program should not erash even if the user types in Control-C.
![Technical Requirements
1. You may create or find on the internet 5 scripts that draw the 5 images. Each drawing
should, be implemented as a function. Name these functions fun1, fun2, fun3, fun4,
and fun5. Minimally, funl has (and requires) a definite loop. The others functions are
not required to have a loop. The images generated should be different from each other in
structure and color.
2. For each function use a docstring to provide a short description proceeded by Purpose:
and an attribution to the creator using Author:. If you are the author then use your
name. If you found the script on the internet then provide the URL.
3. Whether funl to fun5 are original code or found on the internet is your decision and will
not add to or diminish your grade.
4. Each of funl through fun5 should have a parameter t which is the turtle object. You
should have only 1 turtle defined for the entire program. You are free to use additional
parameters.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0022691e-c1b5-4a32-8229-ed7f8b260512%2F4608c2f4-4c61-408d-ae9a-61435b7fff2a%2Fe9j736d_processed.png&w=3840&q=75)
Transcribed Image Text:Technical Requirements
1. You may create or find on the internet 5 scripts that draw the 5 images. Each drawing
should, be implemented as a function. Name these functions fun1, fun2, fun3, fun4,
and fun5. Minimally, funl has (and requires) a definite loop. The others functions are
not required to have a loop. The images generated should be different from each other in
structure and color.
2. For each function use a docstring to provide a short description proceeded by Purpose:
and an attribution to the creator using Author:. If you are the author then use your
name. If you found the script on the internet then provide the URL.
3. Whether funl to fun5 are original code or found on the internet is your decision and will
not add to or diminish your grade.
4. Each of funl through fun5 should have a parameter t which is the turtle object. You
should have only 1 turtle defined for the entire program. You are free to use additional
parameters.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT