In The Program Description The Items Sold Are Referred To As Item1 And Item2 Cho

Create two more Store objects and initialize their inventory. Do this before you start the loop to purchase something at Store1. This will test if you are correctly keeping track of inventory across multiple locations. When they choose to exit the loop to buy items, print the amount of inventory at each store and the total overall for each item. The output should look something like:

Item 1Store 1: 5Store 2: 10Store 3: 15Total: 30

Item 2Store 1: 8Store 2: 7Store 3: 20Total: 35

NOTES: When you call nextInt(), it leaves a carriage return in the buffer. If you have a nextLine() call that follows it, it will read the carriage return as its input. To remedy this, before calling a nextLine() (but after you have called a nextInt()), clear the buffer with an extra call to nextLine().

**Program needs to be done in Java and for a more beginner type of programmer

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW