You want an expression evaluator. There are a few ways to do this. If this is part of an assignment then can you post the assignment? I think there is still some detail that's missing from your description.
Using cell concept studied in the classroom, create a program / function to assess
Mathematical expressions of the infix form (X p Y), namely:
(2+ (9 * (6 * 8)))
(2 + 4)
((2 + 5) * (9/3))
To do this:
- Use and create and stack API that will serve as support.
- Use the sequence of screens shown in the examples below.