Banana Milk Bread Plantain Coffee Tea Apple Silk Hummus
Iterate over all items Accumulate total cost Return total 📋
Iterate over all items Accumulate total cost Return total
totalCost = 0 Iterate over all items { totalCost = totalCost + eachItem.getCost() } return totalCost