printProgress prints out a progress bar given a percentage.