Answer to Question #2160 in C++ for Michele

Question #2160
I am sending the numbers 5020, 351, 5371 to the following funtion. I want this function to display 50.20, 3.51, 53.71, but it keeps displaying 50.00, 3.00, 53.00. HELP!void displayInvoice(int subTotal, int tax, int total) { float sub, t, tot;
cout<<< fixed<<<"

Your Invoice Statement:
";
cout<<<" Subtotal: $ "<<<"
";
cout<<" Tax: $ "<<<"
";
cout<<" ------------
";
cout<<" Total: $ "<<<"
";
}
1
Expert's answer
2011-03-28T13:52:12-0400
Submit all your requirements as an assignment to our control panel set the deadline and our experts will assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS