function printpackages(packstruct)
fprintf('\n  Item # Cost Price Code\n\n')
no_packs = length(packstruct);
for ii = 1:no_packs
    fprintf('%6d %6.2f %6.2f %3c\n', ...
          packstruct(ii).item_no, ...
          packstruct(ii).cost, ...
          packstruct(ii).price, ...
          packstruct(ii).code)
end

