Question: [Part 1] Create a Java program to detect errors in an expression regarding grouping symbols(parenthesis and curly braces). [Minimum Requirement] Create your own GENERIC stack
![[Part 1] Create a Java program to detect errors in an](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4639de1065_31766f4639d64fec.jpg)
[Part 1] Create a Java program to detect errors in an expression regarding grouping symbols(parenthesis and curly braces). [Minimum Requirement] Create your own GENERIC stack class. DO NOT USE Java built-in Stack. Test five statements Use two HashMaps (parenthesis and their complement, error number and its message Part 2 Write program that takes a valid mathematical operation in in-fix notation and converts it to post-fix notation then evaluates the expression. (Limitations of the program are that the expression may only contain single digit integers.) [Minimum Requirement] Use the Generic stack that created by Part 1. Test two in-fix notations Use one HashMap (for preference checking) [Submission] Stack211.java (stack operation methods) evaluation1.java(main program of Part 1) evaluation2.java(main program of Part 2) [Part 1] Create a Java program to detect errors in an expression regarding grouping symbols(parenthesis and curly braces). [Minimum Requirement] Create your own GENERIC stack class. DO NOT USE Java built-in Stack. Test five statements Use two HashMaps (parenthesis and their complement, error number and its message Part 2 Write program that takes a valid mathematical operation in in-fix notation and converts it to post-fix notation then evaluates the expression. (Limitations of the program are that the expression may only contain single digit integers.) [Minimum Requirement] Use the Generic stack that created by Part 1. Test two in-fix notations Use one HashMap (for preference checking) [Submission] Stack211.java (stack operation methods) evaluation1.java(main program of Part 1) evaluation2.java(main program of Part 2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
