Code:
cout<<setprecision(2)<<"Final Cost:"<<setw(24)<<"$"<<trueCost<<endl;
that's what I was looking for...thanks. My book tells me this is the correct format to to make sure I have #include <iomanip> which I do. The problem now is when I stick that in there I get some really funky output: Any thoughts about what I am doing wrong now?
Welcome to...
>>>Phils Floors<<<<
Our Rugs Rock
If you enter the customers name, type of rug purchased,
room dimensions, and type of payment, this program
will calculate and print a bill to the screen
Please enter the customers name: Phil Customer
Please enter rug color (R)ed (B)lue (G)reen: r
Please enter the method of payment
(C)ash (Z)ippy or (O)ther: c
Enter the Length of your room: 6
Enter the Width of your room: 8
>>>Phil's Floors<<<<
Our Rugs Rock
Customer Name: Phil Customer
Rug Color: RED
Payment Method: Cash and Carry
10% -- Cash and Carry
Discount: $23.952
Rug Cost: $239.52
Final Cost: $2.2e+002
Press any key to continue
I just put the setprecision command in the final cost line and that is what I am getting as output =/