Question: C++ programming, I'm having a hard time understanding how to program this Your program will draw a pine tree in the console window using characters.

C++ programming, I'm having a hard time understanding how to program this
 C++ programming, I'm having a hard time understanding how to program
this Your program will draw a pine tree in the console window

Your program will draw a pine tree in the console window using characters. It will rompt the user for a height (which is the height of the top or cone) and then draw the tree: in the console window using characters. It will prompt the user for a How tall should the tree be?: 7 Pay close attention to the diagrams as they show the relations between the different parts of the tree. It is part of the assignment requirements to maintain these relationships. The details illustrated in the diagram are sufficient for you to complete the program. The sides of the cone are formed with the slash and back- slash characters respectively. The base of the cone is formed with the minus symbol. And the trunk is formed by the vertical bar or pipe symbol (the shift-backslash). There are two import and related concepts to keep in mind when writing output to the console: 1. Characters on each line are written left to right; once a character is written, so it is not possible to backup and write a new character to the left of the last character written Each line is written from the top of the console downward; once you begin a new line, it is not possible to backup and add a new line or change an existing line; each new line begins at the left edge of the console window 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!