Skip to main content

Receipt Calculator

Challenge on lesson: Checkpoint: Types and Expressions

Implement receipt(price, people) so program() prints exactly:\ntotal: 26.4 (price times 1.1 tax, as a double)\nper person: 13.2 (total split between 2 people — real division!)\nBoth numbers must be doubles, printed with a single space after the label.

Difficulty: beginner

Back to lesson: Checkpoint: Types and Expressions