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

Can I please get some help with the question below. I need to see how this is do

ID: 3852574 • Letter: C

Question

Can I please get some help with the question below. I need to see how this is done and start pratice from there.

Basic output - ASCII art In this assignment, you'll make ASCII art using cout statements. The following is a program that prints a 4-evel 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

Explanation / Answer

ascii.cpp

#include <iostream>

using namespace std;
void printTree();
void printCat();
void printSemitruck();

int main()
{
   printTree();
   cout << " " << endl;
   cout << " " << endl;
   cout << " " << endl;
   printCat();
   cout << " " << endl;
   cout << " " << endl;
   cout << " " << endl;
   printSemitruck();

   return 0;
}

void printTree(){
   cout << "   *" <<endl;
   cout << " ***" <<endl;
   cout << " *****" <<endl;
   cout << "*******" <<endl;
   cout << " ***" <<endl;
}
void printCat(){
   cout << "/\   /\" <<endl;
   cout << " o o" <<endl;
   cout << " =   =" <<endl;
   cout << " ---" <<endl;
}
void printSemitruck(){
   cout << "____________________ ||" <<endl;
   cout << "|^^^^^^^^^^^^^^^^^^^\||____" <<endl;
   cout << "|    Super Cool     |||``|`\__,__" <<endl;
   cout << "| _________________ |||__|__|__|)|" <<endl;
   cout << "(@)@)`````````````**|(@)(@)**|(@)" <<endl;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote