Question: C++ Programming homework For this little homework project, create a c++ program that includes the main method that defines three string variables: line: This variable
C++ Programming homework
For this little homework project, create a c++ program that includes the main method that defines three string variables:
line: This variable holds a string of asterisks in the form of a line
rectangle: This variable will hold a string of asterisks in the form of a rectangle
triangle: This variable will hold a string of asterisks in the form of a triangle
Hint : To make the shapes, you do not need fancy graphics capabilities. Remember, the string can hold any character, number or symbol, including spaces, and the special characters \t and . To create a string that holds a vertical line, include an asterisk, then use the character to start a new line, and include a second asterisk. When you display the string, the two asterisks will be lined up on two separate lines. Use spaces in your string to place the line exactly where you need it.
The main method should display a label that describes the shape, then display the contents of each variable. For example, the main method should display the label "Triangle", then display the variable that holds a triangle made of asterisks (stars).
Then, the main method should display a label and display the variables again, but in a different order so the combined shapes make the more complex shapes. Do not create variables for these complex shapes! You just need to reuse the shapes you already have. For example, to make a popcicle, display the rectangle variable, then display the line variable. The labels for the complex shapes should be: funnel, popcicle, down arrow.
Out put must look like this bellow:

Minimum Requirements:
1. This program must contain a total of three variables in main as described above. You can only use cout statements.
Important Note: If you decide to get help , you must modify the example to remove any extra code (loops, for, do, while, if, switch etc) so that the main function contains only variables and cout statements.
2. The main method should display the labels for each shape as shown in the example output, then display the variables as needed in order to display the desired shapes. Follow the display order shown on the example output.
Line: Triangle Rectangle: Funnel: Popcicle Down Arrow: Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
