Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ybooks.com/zybook/COMPTONCSCI1GhyamFall2018/chapter/1/section/12 1 1 home > 1.12

ID: 3747215 • Letter: Y

Question

ybooks.com/zybook/COMPTONCSCI1GhyamFall2018/chapter/1/section/12 1 1 home > 1.12 Ch 1 Program: ASCll art (C++) zyBooks cat 1.12 Ch 1 Program: ASCIl art (C++) This zyLab activity is the traditional programming assignment, typically requiring a few hours over a week. The previous sections provide warm up exercises intended to help a student prepare for this programming assignment (1) Output this tree. (4 pts) (2) Below the tree (with two blank lines), output this cat (6 pts) l in a string acts as an escape character such as with a newine In So, to print an actual backslash e ash Ex. The following prints a single backslash, cout ss "W art (C++

Explanation / Answer

Pease copy and paste whole code

#include<iostream>

using namespace std;

int main(){

//Draw tree

cout<<" *"<<endl;

cout<<" ***"<<endl;

cout<<" *****"<<endl;

cout<<"*******"<<endl;

cout<<" ***"<<endl;

cout<<endl<<endl;

//Draw Cat

cout<<"/\ /\"<<endl;

cout<<" o o"<<endl;

cout<<" = ="<<endl;

cout<<" ---"<<endl<<endl<<endl;

}

//OUT

*
***
*****
*******
***


/ /
o o
= =
---