0 of 10 problems solved • 0%
Use in a course

Exercise prompt

Checkout Total

Turn the supplied price, quantity, and discount into a checkout summary.

Your task

Use the supplied item price and quantity to produce:

Subtotal: 50 Final total: 40

Calculate subtotal first, then apply the discount to get finalTotal. Display both named results.