I wrote this program that will calculate the retail price of an item. So far I have the program working but the output is not exactly what I expected.
For example, if I input 5.00 for the cost and 100 for the percentage(markup), the retail price should be 10.00, but instead the output gives me the result of 1000.00. I have already experimented with the iomanip library but I can't seem to figure out a way to correctly format the output to put a decimal point in between the numbers. Can anyone give me any hints on how to do this?.
I don't think there's anything wrong with my "maths". That's exactly how you get the retail price: add 100 to the markup percentage and multiply the sum by the cost of the item. I still think something might be wrong with the coding. Or at least just how the output is being formatted.