Riya W.

asked • 08/11/21

Use Application of Stack and Queue for the code.

2. 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:Sir,please use object oriented approach)


Patrick B.

It uses the queue and stack objects, so yes OOP
Report

08/11/21

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

Riya W.

the code is not compileing.There is no return type.
Report

08/12/21

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.