write a c program hw6 cpp that does the following the program first creates an stl s 4945643

Write a C++ program hw6.cpp that does the following: – The program first creates an STL stack that stores char data.– Then ask user to enter a series of parentheses and/or braces,then report whether or not they’re properly nested: Example run: Enter parentheses and/or braces: ((){}{()}) Parentheses/braces are nested properly Continue? (y/n) Enter parentheses and/or braces: {{{()}} Parentheses/braces are NOT nested properly Continue? (y/n) Enter parentheses and/or braces: {({{()(){}}))} Parentheses/braces are NOT nested properly Continue? (y/n) – After each round, ask user if he/she wants to continue. Ifyes, go back to the previous step and take another string ofparentheses/braces. If no, terminate program. – Hint: As the program reads characters, have it push each leftparenthesis or left brace into the STL stack. When it reads a rightparenthesis or brace, have it pop the stack and check if the poppeditem is a matching parenthesis or brace (If not, theparentheses/braces aren’t nested properly). When there is no morecharacter to read, check if the stack is empty; if so, theparentheses/braces are matched. – If the user enters any character other than parenthesis orbrace, simply ignore it. Therefore, entering a wrong charactershouldn’t lead to program malfunction. – Note: If you implement it without using STL stack, there willbe a huge loss of points (even if the program works). . . .

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now