PA1Basicoutput-ASCIIart1.pdf

Basic output - ASCII art   In this assignment, you’ll make ASCII art using cout statements. The following is a program that  prints a 4­level triangle. This assignment has 3 steps. Iteratively add to the starter program each  step.  

  1. Print a tree by adding a base under the 4­level triangle.  *

***

*****

*******

***

  2. Under the tree, print the following “cat” (have exactly three blank lines between the tree and  cat). Development suggestion: Try copy­pasting one line then test.    Hint: A backslash (\) in a string acts as an escape character, such as with a newline (\n). So, if  you need to print a backslash, then you need to escape that backslash by prepending another  backslash, for example to print a single backslash: cout << "\\";    /\ /\

o o

= =

---

  3. Under the cat, print the following semi­truck (have exactly three blank lines between the cat  and semi­truck).    _________________ ||

|̂^̂^̂^̂^̂^̂^̂^̂ \̂||____

| Super Cool |||''|'\__,__

| ______________ |||__|__|__|)|

(@)@)''''''''''**|(@)(@)**|(@)

   

Your final output should look like the following:  *

***

*****

*******

***

/\ /\

o o

= =

---

_________________ ||

|̂^̂^̂^̂^̂^̂^̂^̂ \̂||____

| Super Cool |||''|'\__,__

| ______________ |||__|__|__|)|

(@)@)''''''''''**|(@)(@)**|(@)