a. Write a java code to construct the above shape. b. A list of such plant on the same line can be easily constructed us Java geometric transformations -see the figure- develop a java co such line of plants.

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

f. Using suitable randomization, write a java code to assign a different size to each plant.

A simple plant -see the figure- can be constructed using simple Java instructions.
a. Write a java code to construct the above shape.
b. A list of such plant on the same line can be easily constructed using suitable
Java geometric transformations -see the figure- develop a java code to make
such line of plants.
c. Many successive lines can also be constructed to create a field of plants,
develop a java code to implement the plants field.
d. Using suitable rendering, you can assign different random colors -of course all
of the colors are of green grades- to each plant, develop a java code to
implement such coloring.
e. Using suitable randomization, rotate each plant in d) to mimic the situation that
some plants are not totally vertical.
f. Using suitable randomization, write a java code to assign a different size to
each plant.
g. If we want to change the direction of the full scene in f) with an arbitrary angle,
write a java code to do that.
h. Snapshot the output in g)
Transcribed Image Text:A simple plant -see the figure- can be constructed using simple Java instructions. a. Write a java code to construct the above shape. b. A list of such plant on the same line can be easily constructed using suitable Java geometric transformations -see the figure- develop a java code to make such line of plants. c. Many successive lines can also be constructed to create a field of plants, develop a java code to implement the plants field. d. Using suitable rendering, you can assign different random colors -of course all of the colors are of green grades- to each plant, develop a java code to implement such coloring. e. Using suitable randomization, rotate each plant in d) to mimic the situation that some plants are not totally vertical. f. Using suitable randomization, write a java code to assign a different size to each plant. g. If we want to change the direction of the full scene in f) with an arbitrary angle, write a java code to do that. h. Snapshot the output in g)
Expert Solution
steps

Step by step

Solved in 2 steps

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