CJCoding With Joseph
15free / daySign inCreate account

Price Plus Tax

The tax and the total are already computed from the declared price and tax rate. Print three lines of output, each a label, a colon and a space, then the value with exactly two decimal places using :0.2f: the labels are Price, Tax and Total, in that order. Input: none; the values are fixed in the code.

Expected Output:

Price: 19.99
Tax: 2.60
Total: 22.59

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.