Question: Write C++ program using 2D array method stack with the following conditions : There are 5 rack of eggs stacked one by one, each rack
Write C++ program using 2D array method stack with the following conditions :
There are 5 rack of eggs stacked one by one, each rack contains 10 eggs (visualized with the number 0). The seller takes the eggs from left to right on each shelf, if someone buys eggs, the position of eggs does not shift. Every shelf that is empty, the shelf is lifted. Buyer cant buy eggs beyond the existing stock
Menu :
- Initialize the egg
- Look at the egg rack
- Buy eggs
- Out
Select menu (1-4) :
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
