Java project
Budget: ₹600 – ₹1,500 INR
Write a program that checks for balanced parentheses in an expression i.e. whether the pairs and the order of "{ ", " } ”, " ( ", " ) ”, " [ ", " ] ” are correct in the given input.
The program should keep taking expressions as input one after the other, until the user enters the word `done' (not case-sensitive). After all the expressions are input, for each input, the program should print whether the given expression is balanced or not (the order of the output should match the order of the input). If an input expression is balanced, print Balanced else print Not Balanced
The program should keep taking expressions as input one after the other, until the user enters the word `done' (not case-sensitive). After all the expressions are input, for each input, the program should print whether the given expression is balanced or not (the order of the output should match the order of the input). If an input expression is balanced, print Balanced else print Not Balanced