The FinalSteps procedure performs the main calculations and calls the procedures that execute the algorithm(see Figure CS21.15). This procedure is assigned to the"Solve" button on the second input sheet The procedure begins with two emor checks to ensure that the product type table has been completely filled and that the sum of the required bays is less than or equal to the total number of bays in the warehouse.