6- write a program that outputs an appropriate message for grouping

‫ اسئلة‬CHAPTER 7- ‫ ال‬Stack
6- write a program that outputs an appropriate message for
grouping symbols , such as parentheses and braces, if an arithmetic
expression matches. for example the expression {25+(3-6)*8}
contains matching grouping symbols.
9- Example 6-5 (in chapter 6) converting a Number from Decimal to
Binary, contains a program that uses recursion to convert a decimal
number into am equivalent binary number.Write a program that
uses a stack to convert a decimal number into an equivalent binary
number