A practical example that calculates line-item totals for a list of products by capturing quantity and price.