top of page

PROGRAMMING CHALLENGES

Airline Ticket Booking

Difficulty:

2 Medium

8 Practise Exam Questions

Topic:

Part 1: Write a program to calculate the cost of booking airline tickets based on the number of tickets and the class (Economy, Business). Economy costs £200, Business costs £500. Part 2: Extend the program to apply a 10% discount if more than 5 tickets are booked. Output the total cost.

Inputs: Number of tickets, class. Outputs: Ticket cost. Calculations: Use if-else for class, apply discount if applicable. Variables: tickets, class, total_cost, discount.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page