CJCoding With Joseph
15free / daySign inCreate account

Cinema Ticket Pricing

Read a customer's age, the day of the week and a yes or no answer for 3D, then print the cinema ticket price to two decimals in the form Price: <amount>. The base price is 8 under 13, 9 at 65 or older and 14 otherwise; on Tuesday the base price is halved; a 3D showing then adds 3. Apply the three rules in that order. Input: three lines, the age as an integer, then the day name, then the answer, no prompts. Output: one line, formatted with :.2f.

Expected Output:

Price: 8.00

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

Hints4 available
Topics:
If Statements
📥 Auto-Input:
10\nMonday\nno\n
This input is automatically fed to your program's stdin
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.