Super+Cinema

Task
SuperCinema need a program which asks their customers how many cinema tickets they would like to purchase, and then which price category of tickets they would like. It then calculates and displays the total cost of all the tickets. Tickets can be £4, £5 or £6.

Design
Screen designs showing how the program should work are shown below:

What are the inputs, processes and outputs? Write these in your jotter

What variables are required? A variable for the number of tickets required: //**NoTickets**// A variable for the price of the tickets: //**TicketPrice**// A variable for the total cost: //**TotalCost**//

1. Display a welcome message for 2 seconds 2. Ask the user to enter the number of tickets they require 3. Set the number of tickets variable to the answer 4. Ask the user to enter the price of the tickets (4, 5 or 6) 5. Set the price of the tickets to the answer 6. Calculate the total cost 7. Display the total cost

Program
Now write the program based on the above design

Testing
Test your program works using 3 different sets of input data. What happens when you enter a ticket price which is not £4, £5 or £6?