Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN C: My convertInToPost function is able to read white spaces, prioritize operators, balance parentheses, and read single digit numbers all using if-else statements. But

IN C: My convertInToPost function is able to read white spaces, prioritize operators, balance parentheses, and read single digit numbers all using "if-else" statements. But I do not know how I will be able to have multi digit numbers be appended to postfix.

What condition should my "if statement" be within my convertInToPost function if I want it to read multi digit operands from an infix string?

If someone could help me with this, it would be most appreciated.

What I would like it to do: (all white spaces are intentional)

given infix: 2-(4*11+(6/7^8)*9)*200 postfix: 2 4 11 * 6 7 8 ^ /9 * + 200 * -

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

Answer only when know.. 5 9 6 .

Answered: 1 week ago