Receipt Calculator
Challenge on lesson: Checkpoint: Types and Expressions
CHALLENGE
Difficulty: beginner+25 XP
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.
Press Submit to check your solution.
Back to lesson: Checkpoint: Types and Expressions