The problem you have noticed is simple:
totalChoice1 = quantity * alloy;
Each time you execute this, you discard all previous purchases.
Possibly, what you wanted was
totalChoice1 = totalChoice1 + quantity * alloy;
Or
totalChoice1 += quantity * alloy;
But ... you'd be better off thinking about what happens when you actually go shopping: They maintain a list of everything you buy, not just sum the amount - if your supermarket receipt just said "$406.99" then you'd probably not be happy, particularly if you needed to return something...