Write a program that produces images of Christmas trees as output. It should have a method with

Question:

Write a program that produces images of Christmas trees as output. It should have a method with two parameters: one for the number of segments in the tree and one for the height of each segment. For example, the tree shown here on the left has three segments of height 4 and the one on the right has two segments of height 5:

*** **大 ***** 大★*大大 ******* ******* *** 大★★大*大オ大 ***** *** ******* 大★★★★ ★大★★★ ******* ***** **** 大★★大 *★★★★★大 ** 大大大 ******* 大 *★★★★大大

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: