FontysICT-sem1

#Training - Christmas Tree Generator

Create a method that allows you to create a Christmas tree of a certain height in a certain color at any position on the screen. It should also be possible to include the symbol. In the screenshot below, we have given the Christmas trees the following parameters/properties:

Color Height Left/x Top/y Symbol

|——-|———|——-|——–|—————-|

Red 10 10 10 8
Green 5 20 5 5

Use a Console application.

Tip: use Console.ReadKey() to prevent the program from shutting down again immediately after startup.

![[christmas-tree.png]]

Roadmap

  1. Print a certain character on the screen

  2. Have a horizontal line of several characters printed

3.Have a horizontal line of multiple characters printed at any position

  1. Have a horizontal line of multiple characters printed at random position in a specific color

  2. Create a Christmas tree shape

  3. Multiple Christmas trees

Extensions

Resources.