Question
hi I need to solve these questions today in details, please use java Task 1 : Use the expression trees to build a calculator. The
hi I need to solve these questions today in details, please use java
Task 1: Use the expression trees to build a calculator. The user should enter the expression in infix notation. The calculator should support the following:
- Construct expression tree from infix expression.
- Print expression using infix notation.
- Print expression using postfix notation.
- Print expression using prefix notation.
- Evaluate expression; assume that all the operands are numbers
Task 2: The online store system should enable the user to add a new product to the store, and view the products in the store. The store items should have the following information:
- id
- type
- brand
- price
- quantity.
The system should create a BST in which each node maintains a product item. The BST is arranged in terms of the price. The system displays a menu with the following options:
- Add a new item to the store
- View items in the store in ascending order of price
- View items in the store in descending order of price
- Search for items with a given price.
- Exit the system
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started