Description: Design a store class to help manage multiple stores and their inventories
Requirements
The class contains:
1) A static int variable named storeCounter that starts at 1 and increments for each new store
item that is created
2) A string array called Inventory
3) An int variable called StoreID
4) A Boolean variable called isOpen
5) A no-argument constructor that performs the following:
a. Sets storeID to storeCounter, then increments storeCounter
b. Sets isOpen to true
c. Sets Inventory to be size 3 with no values inside.
6) A two-argument constructor that has an int parameter and a boolean parameter, and
performs the following:
a. Sets storeID to storeCounter, then increments storeCounter
b. Sets isOpen to the boolean parameter
c. Sets Inventory to be the size of the int value
Write the following instance methods:
7) A void method called setInventory() that allows the user to input string values to populate
the Inventory array of the store calling the method
8) A void method called setInventoryEasy() that sets the first three indexes of the Inventory
array of the store calling the method to the following: "Shoes", "Shirts", and "Pants"
9) A void method called storeDetails() that prints out the following properties of a store:
StoreID, all inventory items, and whether the store is open.
a. If isOpen is true, a store is open.
In the main method:
i. Create 3 new stores
a. Create the first store with the default constructor
b. Create the second store to be open and have an inventory size of 4
c. Create the third store to be closed and have an inventory size of 3
ii. Call setInventoryEasy() for the 1st and 3rd store
iii. Call setInventory() for the 2nd store, add whatever items you want
iv. Call storeDetails() for all three stores