Question: Description Write a program for a simple inventory management system based on a simple inventory ADT, as described below, using an implementation based on an

Description Write a program for a simple inventory management system based on a simple inventory ADT, as described below, using an implementation based on an AVL Tree Simple Inventory ADT Members Description number of products i.e., product id's, not number of items of each product) in the current inventory count [product_id] maps to the non-negative number of items for product_id currently in the inventory Description return n return value of count [product.id] return the size of the current inventory (i.e., the total number of items. count[i]) count Methods num products( available(product.id) size in(product.id, num.items) increase number of items of product.id available by num items count [product.id] - count [product.id] num items out (product.id,num.items) decrease the number of items of product.id available by num items tmp.value - count [productid] - num.items if tmp value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
