A avoid method called set inventory() allows the user to input string values to populate the inventory array of the store by calling the method .true
An array is a group of comparable statistics factors saved at contiguous reminiscence locations. it is the simplest information shape wherein every data element can be accessed immediately by way of only the usage of its index variety.
A -the dimensional array is the structure of a fact that carries a collection of cells specified in a two-dimensional grid, just like a table with rows and columns despite the fact that the values are still stored linearly in memory.
Arrays shop more than one statistic of similar types with the same name. It allows random get the right of entry to factors. because the array is of fixed size and stored in contiguous reminiscence locations there may be no reminiscence scarcity or overflow. it's far useful to save any type of fact with a hard and fast length.
Learn more about inventory array here:
https://brainly.com/question/24507709
#SPJ4