Question: Data Structure & Algorithm I lab Lab Project # 1 You are required to implement a program using the concepts of Stack data structure. There
Data Structure & Algorithm I lab Lab
Project #
You are required to implement a program using the concepts of Stack data structure.
There is a file contains a set of infix expressions. At the beginning, read all expressions in this file and check if each expression is valid or not see examples below If the infix expression is valid, convert it to the postfix expression, then make evaluation to the postfix expression.
Your program should include an appropriate menu to the user that shows the available options.
Read file.
Print the set of infix expressions, and state if it is valid or not.
eg
valid
invalid
invalid
invalid
Print the postfix expressions.
Evaluate the postfix expressions and print the results.
Write each valid infix expression with its postfix expression and result on file.
Please use the following format.
infix expressionpostfix expressionResult
eg
Exit
This project due date is late submissions will not be accepted
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
