Art.java must take one (1) integer command-line argument n that controls the depth of recursion. Your drawing must stay within the drawing window when n is between 1 and 7. (The autograder will not test values of n outside of this range.) You may not change the size of the drawing window (but you may change the scale). Do not add sound. Your drawing can be a geometric pattern, a random construction, or anything else that takes advantage of recursive functions. Your program must be organized into at least three separate functions, including main(). All functions except main() must be private. For full credit, Art.java must not be something that could be easily rewritten to use loops in place of recursion, and some aspects of the recursive function-call tree (or how parameters or overlapping are used) must be distinct from the in-class examples (HTree, NestedCircles, etc.). You must do at least two of the following things to get full credit on Art.java (and doing more may yield a small amount of extra credit): call one or more Transform2D methods use different parameters than examples: f(n, x, y, size) use different StdDraw methods than examples (e.g., ellipses, arcs, text; take a look at the StdDraw API) have non-constant number of recursive calls per level (e.g., conditional recursion) have mutually recursive methods have multiple recursive methods use recursion that doesn't always recur from level n to level n-1 draw between recursive calls, not just before or after all recursive calls use recursive level for secondary purpose (e.g., level dictates color) You may use GIF, JPG, or PNG files in my artistic creation. If you do, be sure to submit them along with your other files. Make it clear in your readme.txt what part of the design is yours and what part is borrowed from the image file.

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question

Part III - Create Your Own Art 

Art.java

In this part you will create a program Art.java that produces a recursive drawing of your own design. This part is meant to be fun, but here are some guidelines in case you're not so artistic.

Requirements

  1. Art.java must take one (1) integer command-line argument n that controls the depth of recursion.
  2. Your drawing must stay within the drawing window when n is between 1 and 7. (The autograder will not test values of n outside of this range.)
  3. You may not change the size of the drawing window (but you may change the scale). Do not add sound.
  4. Your drawing can be a geometric pattern, a random construction, or anything else that takes advantage of recursive functions.
  5. Your program must be organized into at least three separate functions, including main(). All functions except main() must be private.
  6. For full credit, Art.java must not be something that could be easily rewritten to use loops in place of recursion, and some aspects of the recursive function-call tree (or how parameters or overlapping are used) must be distinct from the in-class examples (HTree, NestedCircles, etc.). You must do at least two of the following things to get full credit on Art.java (and doing more may yield a small amount of extra credit):
    1. call one or more Transform2D methods
    2. use different parameters than examples: f(n, x, y, size)
    3. use different StdDraw methods than examples (e.g., ellipses, arcs, text; take a look at the StdDraw API)
    4. have non-constant number of recursive calls per level (e.g., conditional recursion)
    5. have mutually recursive methods
    6. have multiple recursive methods
    7. use recursion that doesn't always recur from level n to level n-1
    8. draw between recursive calls, not just before or after all recursive calls
    9. use recursive level for secondary purpose (e.g., level dictates color)
  7. You may use GIF, JPG, or PNG files in my artistic creation. If you do, be sure to submit them along with your other files. Make it clear in your readme.txt what part of the design is yours and what part is borrowed from the image file.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
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:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,