In this exercise, we will revisit the parenthesis-balancing example from Module 8. Recall that, in balancing parentheses given as a string, the examples we saw determined whether or not the string had balanced parentheses. In this exercise, you will also print out the location of the problem whenever the paren's are not balanced.
To get started, download ParenBalancingExercise.java.
Balanced: ((())) Unbalanced: ((()) ^ Unbalanced: ()))) ^ Unbalanced: (()()( ^Thus, if the paren's are balanced, simply print that the string is balanced, along with the string itself. If it's not balanced, print the string and underneath, print the location of the first "problem" parenthesis, using a caret as in the examples above.
Submission:
What else is due: