Question: Input Your program will take an arithmetic expression as a String input. For Example: 1. 1+2(3/4) 2. 1+2[33+{45(6(7/8/9)+10)11+(128)]+14 3. 1+2[33+{45(6(7/8/9)+10)}11+(128)/{13+13}]+14 Program Your

![input. For Example: 1. "1+2(3/4)" 2. " 1+2[33+{45(6(7/8/9)+10)11+(128)]+14" 3. " 1+2[33+{45(6(7/8/9)+10)}11+(128)/{13+13}]+14 "](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3d2272951f_07866f3d226bf1a1.jpg)
Input Your program will take an arithmetic expression as a String input. For Example: 1. "1+2(3/4)" 2. " 1+2[33+{45(6(7/8/9)+10)11+(128)]+14" 3. " 1+2[33+{45(6(7/8/9)+10)}11+(128)/{13+13}]+14 " Program Your program will determine whether the open brackets (the square brackets, curly braces and the parentheses) are closed in the correct order. Outputs: Output 1 1+2(3/4) This expression is correct. 1+2[33+{45(6(7/8/9)+10)11+(128)]+14 This expression is NOT correct. Error at character \#10. ' { ' - not closed. Output 3 1+2[33+{45(6(7/8/9)+10)}11+(128)/{13+13}]+14 This expression is correct. Output 4 1+2][33+{45(6(7/8/9)+10)11+(128)]+14 This expression is NOT correct. Error at character \# 4. ']'- not opened. Task 1 Solve the above problem using an array based stack
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
