Basic output – ASCII art
Basic output – ASCII art In this assignment, you’ll make ASCII art using cout statements. The following is a program that prints a 4level triangle. This assignment has 3 steps. Iteratively add to the starter program each step. 1. Print a tree by adding a base under the 4level triangle. * *** ***** ******* *** 2. Under the tree, print the following “cat” (have exactly three blank lines between the tree and cat). Development suggestion: Try copypasting 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<<“\\”; /\ /\ oo = = — 3. Under the cat, print the following semitruck (have exactly three blank lines between the cat and semitruck). _________________|| |^^^^^^^^^^^^^^^^\||____ | SuperCool |||”|’\__,__ |______________|||__|__|__|)| (@)@)”””””**|(@)(@)**|(@) Your final output should look like the following: * *** ***** ******* *** /\ /\ oo = = — _________________|| |^^^^^^^^^^^^^^^^\||____ | SuperCool |||”|’\__,__ |______________|||__|__|__|)| (@)@)”””””**|(@)(@)**|(@)
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
