Ok so I got my program to work (WOW) now my teacher wants me to use printf statements with formatting symbols to align the labels and data to make the outputs all pretty and organized. So the question is how? Is there a certain symbol that you use or what cause I don't remember one. Thanks in advance and I'll double check in my book in case I missed something easy.
He wants it like this. (Also can someone remind me how to show it as code)
Enter Price: $ 500
______Discounted Price: $ 425.00
____________Sales Tax: $ 37.19
________________Total: $ 462.19
What I have is this and not sure what to do to make it organized.
System.out.printf("Total: $ %,.2f" , total);