question 40 Conditional Logic · hard
Three bugs in the ticket desk
A cinema charges children under 12 6, people 65 and over 7, and everyone else 11. Students pay 2 less, whatever their ticket. The desk types the age and then yes or no for student. The program gives a 30-year-old non-student a student price, never sells a senior ticket, and has one more boundary bug. Fix all three.
Typed lines
30, then no. Check also types other customersPrints
Age? Student? Price: 11Expected output1 line · typed 30, then no
- 1Age? Student? Price: 11