sets and maps lazymart sales report store # item jan feb mar nov dec figure sample sales report where the first line indicates the number of storesthe second line indicates the number of individual items (both of which are integers)and the remaining lines contain the sales data each line of the sales data consists of four pieces of informationthe store numberthe month numberthe item numberand the sales amount for the given item in the given store during the given month for simplicitythe store and item numbers will consist of consecutive integer values in the range [ max]where max is the number of stores or items as extracted from the first two lines of the file the month is indicated by an integer in the range [ and the sales amount is floating-point value data organization while some reportslike the student report from are easy to produce by simply extracting the data and writing it to the reportothers require that we first organize the data in some meaningful way in order to extract the information needed that is definitely the case for this problemwhere we may need to produce many different reports from the same collection of data the ideal structure for storing the sales data is - arrayas shown in figure in which one dimension represents the storesanother represents the items sold in the storesand the last dimension represents each of the months in the calendar year the - array can be viewed as collection of spreadsheetsas illustrated in figure res sto items months figure the sales data stored in - array