Thanks for checking this out for me. So my issue is when formatiing my cout streams for some example programs I'm writing for class.If I need to use different prefix' or a suffix' (like a $, or .lb) it doesn't print out to the screen lined up. In the code I posted, the dollar amount looks tabbed in further than it should.
setw() function doesn't work properly all the times and I am not sure why. But I'd just play around with the numbers to fix the output format. So for example for cost to ship, if you change setw from setw(8) to setw(4) then it prints properly.
You might use a stringstream to add the '$' to the front of the number. Then the setw(8) will apply to the entire thing, instead of just to the '$' alone.