Question: IN C++ Implement a program that will use a stack structure to check for correct placement of parentheses in an algebraic expression. Allow the use
IN C++ Implement a program that will use a stack structure to check for correct placement of parentheses in an algebraic expression. Allow the use of ( ) [ ] { } characters as grouping symbols. Make sure that an error is reported for an expression of a form (...]. In addition report other possible parentheses-related errors (too many levels, too many right paren., too many left paren.). Make sure to use 'silent error reporting' (and report any possible errors outside the main scanner loop).
start with the program that checks '(...)' and when all the common errors are correctly reported, expand the parentheses syntax to ([{...}])
DO NOT use existing stack library (
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
