I am fairly new to java and I have to create this program to which I have no idea where to start. Can someone please help me with what to do and how to write the code to get
You can use the format() method instead of println():
println()
System.out.format("The subtotal is $%.2f%n", total);
A description of the format syntax can be found here.