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.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 18RQ
icon
Related questions
Question

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.

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.
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.
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Unreferenced Objects
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT