JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Cinema World with starter code
Share
Explore
Gallery
Cinema World with starter code
Cinema World with starter code
The Task
Pseudocode
02-stage 1
03-stage 2
04-stage 3
05-extension
Python Starter Code
Code Clips
05-extension
Extension Task
Cinema World are offering drinks to customers for £2.
Add a feature to ask how many drinks the customer would like.
The program should calculate the cost of the drinks and also the total cost including drinks and tickets. Tickets cost £5.
The order confirmation will now include the number of drinks ordered and show the total cost instead of just the cost of tickets.
What new variables will you need? New inputs? New calculations?
Update your pseudocode
Update your code comments
Update your python code
Run, test and debug the update.
Sample output
Enter customer name: Jake Peralta
Enter number of tickets: 4
Enter film name: Die Hard
Enter number of drinks: 3
Cinema World
------------
Ticket Confirmation
Full name: Jake Peralta
Film ame: Die Hard
Numer of Tickets: 4
Number of drinks: 3
Total Cost £26
Gallery
Share
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.