Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! ![]()
Edit:
While we’re waiting - why are you using 0.05 when the problem statement says “0.05$US”?
Why are only one of your cout statements using 2 dp of precision?