Computer Science, asked by chandruvk1819, 9 days ago

19) An e-commerce company's warehouse has N number of storage cells. Each cell is uniquely recognized by a numeric value, known as the identification number (10), labeled 0 to N-1. These storage cells store items where each item is uniquely identified by their item ID. These items are stored sequentially in the storage cell and one item can be stored in one cell only. The warehouse system has all the data related to these cells. The company has a new item of stock for storage where X represents the item ID. The company wishes to know whether item X is available in the warehouse or not. If available, the system must return the ID of the cell where this item is stored. If X is not available, the system must return the 10 of the cell where the item would be stored. the call for item X. write an algorithm to return the cell for item X

write an algorithm to return the cell for item X

Answers

Answered by dishasindhu37
0

Each cell is uniquely recognized by a numeric value, known as the identification number (10), labeled 0 to N-1. These storage cells store items where each item is uniquely identified by their item ID. These items are stored sequentially in the storage cell and one item can be stored in one cell only.

Answered by shilpa85475
0

The company wishes to know whether item X is available in the warehouse or not.

If available, the system must return the ID of the cell where this item is stored.

If X is not available, the system must return the 10 of the cell where the item would be stored. the call for item X.

Explanation:

Each cell is uniquely recognized by a numeric value, known as the identification number (10)

The labeled 0 to N-1.

These storage cells store items where each item is uniquely identified by their item ID.

These items are stored sequentially in the storage cell and one item can be stored in one cell only.

Similar questions