Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[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

image text in transcribed

[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

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

More Books

Students also viewed these Databases questions