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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education