A cinema would like a system that allows customers to enter details for the film they wish to watch. The system should then print a receipt for the customer that details the customers booking. The system should allow the customer to enter the following:
Input the customer’s name
Input the choice of film
Input the number of child tickets (£3.50 each)
Input the number of adult tickets (£7.50 each)
Input the number of OAP tickets (£5.50 each)
The system should calculate the total cost of booking BEFORE discount
Discounts should then be applied using the following criteria:
If the total cost is more than £40 a discount of 25% should be applied
If the total cost is more than £30 a discount of 20% should be applied
If the total cost is more than £20 a discount of 10% should be applied
If the total cost is £20 or under there is no discount
The program must include validation to provide a written error if the total cost of the booking or number of tickets bought is zero. If this happens the program will force the customer to re-enter the number of tickets they wish to purchase
The program must include appropriate use of naming structures, spacing and code comments
