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: 30Item 2Store 1: 8Store 2: 7Store 3: 20Total: 35NOTES: 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
Consider the following information, and answer the question below. China and England are international trade…
The CPA is involved in many aspects of accounting and business. Let's discuss some other…
For your initial post, share your earliest memory of a laser. Compare and contrast your…
2. The Ajax Co. just decided to save $1,500 a month for the next five…
How to make an insertion sort to sort an array of c strings using the…
Assume the following Keynesian income-expenditure two-sector model: AD = Cp + Ip Cp = Co…