QuestionAsk Questions?

Hello roseindia and java experts can u help me.can you give me a code for this sir/maam.thank you so much.

STACK IMPLEMENTATION

-expression evaluator

*GIVEN a String of expression, create a method that will determine it as VALID or INVALID.

EXAMPLES:

A) A+B Valid

B) AB+ Invalid

C) (A+B) Valid

D) (A+B Invalid

E) (A*B+C) Valid

F) (A+B(*) Invalid

G) (A*(B+C)) Valid

H) ((A*(B)) Invalid

I) (A+B) (A+C) Valid

J) (A+B)A+C) Invalid

Limitation for input string

-must contain any or combination of the following symbols, operators and operands

(),+,-,/,* any letter from A-Z(operand)

STACK IMPLEMENTATION

-expression evaluator

*GIVEN a String of expression, create a method that will determine it as VALID or INVALID.

EXAMPLES:

A) A+B Valid

B) AB+ Invalid

C) (A+B) Valid

D) (A+B Invalid

E) (A*B+C) Valid

F) (A+B(*) Invalid

G) (A*(B+C)) Valid

H) ((A*(B)) Invalid

I) (A+B) (A+C) Valid

J) (A+B)A+C) Invalid

Limitation for input string

-must contain any or combination of the following symbols, operators and operands

(),+,-,/,* any letter from A-Z(operand)

View Answers

Related Tutorials/Questions & Answers: