Question: An H-tree (introduced at the beginning of this chapter in Figure 18.1) is a fractal defined as follows: 1. Begin with a letter H. The

An H-tree (introduced at the beginning of this chapter in Figure 18.1) is a fractal defined as follows:
1. Begin with a letter H. The three lines of the H are of the same length, as shown in Figure 18.1a.
2. The letter H (in its sans-serif form, H) has four endpoints. Draw an H centered at each of the four endpoints to an H-tree of order 1, as shown in Figure 18.1b. These Hs are half the size of the H that contains the four endpoints.
3. Repeat Step 2 to create an H-tree of order 2, 3, . . . , and so on, as shown in
Figure 18.1c–d. 

Write a program that draws an H-tree, as shown in Figure 18.1.
Exercse1835 ExeraselH 35 Ox Exercisel8 35 -olx Exercise18 35 -Jolx|| Enter an order: Enter an order: Enter an order: 2 Enter an order: (a) (b) (c) (d)

Exercse1835 ExeraselH 35 Ox Exercisel8 35 -olx Exercise18 35 -Jolx|| Enter an order: Enter an order: Enter an order: 2 Enter an order: (a) (b) (c) (d)

Step by Step Solution

3.43 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program plan Create a class called stdDraw Create objects to the Color Create variables DEFAULTSIZE ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!