I still don't know if I did it right or not, since we were supposed to modify a code given from the professor. Originally, it is setw(20), but I changed it to 15. Not sure if that was allowed or not.
Now, I don't know how to show the correct number of digits for those values. I tried using setprecision, but it didn't work for all of them. Showpoint gave me an error, I guess I am not using them correctly.