Faria R.

asked • 08/11/21

Our whole class cannot slovingit,please help sir,Use Application of Stack and Queue .

Write a code in C++ [using object oriented approach] that will take a mathematical expression as input and output whether the parentheses are balanced or not in the expression.                          [10 points]


Sample Input: (5 + (9-(3+2))+ 4)

Sample Output: Balanced 


Sample Input: (5 + (9-(3+2)+ 4)

Sample Output: Not Balanced


Note:[using object oriented approach]

You have to submit the code along with the output of the code in reasonable detail in a single pdf fileYour code must contain comments as required.


Patrick B.

YOU shall create the picture of the output and build the pdf file. I have given a working solution for the 2nd time. Take the source code and go
Report

08/11/21

1 Expert Answer

By:

Patrick B. answered • 08/11/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.