This module is submitted as part of the assessment for COMP1100. Its completion is substantially my own work. (signed) Joseph Curtis 3952239 Report for COMP1100 Assignment 5; A Simple Stock Control Application. 1. Starting Column, Max Columns Itemcode: 1 , 8 Description: 11 , 11 Wholesale Price: 23 , 10 Retail Price: 33 , 10 Quantity 43 , 8 2. The 'or else' checks to see if the stocklist itemcode matches the one inputed into the routine. If it does match then the loop will be terminated and the correct itemcode will be the loop index variable 'i'. 3. - Loop through the items in the stocklist array. - For each item, add the product of the quantity in stock and the wholesale price, to a variable sum. - Print the sum out to the screen 4. STD_FILE_READ - 1 STORE_ITEM - number of products in stocklist 5. STOCK_CONTROL CLIENTS: - none SUPPLIERS: - ARRAY[STORE_ITEM] - STRING - CHARACTER - STD_INPUT_OUTPUT - STD_FILE_READ - STORE_ITEM - INTEGER - REAL STORE_ITEM CLIENTS: - STOCK_CONTROL SUPPLIERS: - INTEGER - STRING - REAL - STD_INPUT_OUTPUT 6. You would have to change the input from an INTEGER to a STRING. Then change the 'or else (stocklist.item(i).itemcode = icode)' to 'or else (stocklist,item(i).description = desc)' where desc is the variable inputted into the routine. OPTIONAL PROGRAM ================ I added a section in the new_item routine to check if the retail price is higher than the wholesale price. If it is, the user is prompted to either continue with the prices unchanged or to re enter the wholesale and retail prices. For the item_report, sell_item and receive_delivery routines I added sections to check if the itemcode entered actually exists. If so, the user is prompted to either return to the menu or re-enter the itemcode. A save function was added to the main menu. The user is prompted for a file name to save to and then the stocklist data is saved to that file.