Location : NYC
Postion : SSE
final round: last question asked.
Design a vending machine. We are only interested in keep track of the inventory. Do not work about money or tranctions.
Requirement:
- The item can take up one or more slot adjcent. for example, a long bread can take up 3 slots.
- A slot had a finite amount, let says the depth of slot is 25. So you can have only 25 skittels in one slot. for the example for the long bread it take up 3 slot but it still limited to 25.
- Additional requirement, implement a shopping cart.
- lastly you must use inheirtance and OOP to solve this in 20 mins.