Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

  1. Construct expression tree from infix expression.
  2. Print expression using infix notation.
  3. Print expression using postfix notation.
  4. Print expression using prefix notation.
  5. 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:

  1. Add a new item to the store
  2. View items in the store in ascending order of price
  3. View items in the store in descending order of price
  4. Search for items with a given price.
  5. Exit the system

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

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago