using C++ programing language
1. Declare and initialize an integer named length. You will use this integer variable to control the size and shape of animations later. You will get the value of this integer from the user. The user must enter an odd integer. If the user enters an even integer, you must let the user know that they need to enter an odd number and ask for the value again. You must keep on asking the value until the user enters an odd integer. See included video. 2. Declare an enumeration constant with values Square, Triangle, Pentagon, Sentence and Quit and assign integer values 1 to 5 to them respectively. 3. Generate a seeded random integer in the range of 33 to 64 , inclusive. This integer is the ASCII value of the character that you will use to generate the animations. 4. Inside a switch-case block with a default case, implement the following features. - You must use the enumeration constants of Step 2 to set up your cases. - You must use a variable of your enumeration constant type for switching control. - Ask the user to choose the type of shape-Square, Triangle, Pentagon, Sentence and Quit. - You must display the choices in the form of a menu. See included video. - Use a suitable integer variable to get the choice from the user. - If the user chooses to generate a Square - Generate a square shape that starts at size 1 and progressively increases up to size length. See the video in the link. - To generate squares of different sizes, you will need to clear the screen and regenerate the square of appropriate size for each square. Note that you cannot go back edit a line in the output, so every square you generate will be a new square. To clear the screen use system("clear"); - There must be sufficient delay between the squares of different sizes, otherwise you will only see the last square. To add delay use #include sleep(1); Note that this will only work on our CSE Linux Servers. - If the user chooses to generate a Triangle Clear the screen Here length is the number of lines used to generate the triangular shape i.e. height of the triangle. The triangular shape must be symmetric about the vertical axis. There must be exactly one character in the first line, and the number of characters increases by 2 in every successive line. See included video. Make sure to add delay to view a progressively growing triangle, otherwise you will just see the final triangle. - If the user chooses to generate a Pentagon - This is a combination of a triangular shape and a rectangle shape - a symmetric triangle sits on top of a rectangle. The triangular shape must be symmetric about the vertical axis. There must be exactly one character in the first line, and the number of characters increases by 2 in every successive line. See included video. The rectangle shape must have length lines of height. Make sure to add delay to view a progressively growing pentagon, otherwise you will just see the final shape. - If the user chooses to use a Sentence for animation - In this case, you will not use the generated character for animation. Ask the user to enter a string. The string will have multiple words. If you cannot read a string, type cin.ignore(); before you read the string from the user. You need to remove digits from the string, one digit at a time. As you remove a digit, the string moves to the next line without the removed digit. See included video. - The string will keep on moving down as long as there is a digit to remove. See included video. o Once all digits are removed, the string will stop moving and the animation is over. See included video. To "move" the string to the next line, you will need to clear the screen and display empty lines, and then display the string. - Make sure to add delay to view a moving string, otherwise you will just see the last string. - If the user chooses to Quit, end the program with a suitable message. - If the user enters a wrong choice, use the default case to provide an error message. - Unless the user choose to Quit, your program must ask the user if they want to continue generating animation. See included video. If they choose to continue, you need to generate the random character again and provide the menu to select the shape. If they choose to NOT continue, terminate the program.