So I have a program that (finally) works, thanks to help from this site. My output is numbers (money) printed to the console. They are of varying length. I am wondering if there is a way to make them line up nicely. I am using setprecision and fixed to maintain two decimal places. I am also using setw to move the numbers to approximately the right position. But some numbers are longer than others and so each line doesn't line up. For example,