Hey, Guys! Well, I'm 38 years old and really wanted to pick up programming as just a hobby. I seem to be stuck on a little bit of a problem with making decimal places appear. I'm testing stuff with this program, basically I'm trying to get all the numbers that are being output to have the decimal place out to the hundredth. I've tried using double and float, but just can't seem to get it right. The middle one works, but the first and the second are just not working for me. If someone could please fix this code and tell me why those fixes are needed it'd be greatly appreciated. Thanks!
I actually got it working with the code below, I'm not sure exactly why it worked but it did. I did not have to use #include <iomanip> even though I did use setprecision() why is this?