top of page

PROGRAMMING CHALLENGES

Coffee Shop Loyalty Card

Difficulty:

2 Medium

2.2 Practice Exam Questions

Topic:

Coffee Corner offers a loyalty card where customers get a free drink after buying 10 drinks. Write a program that tracks the number of drinks a customer has bought and outputs how many more they need to buy to get a free drink.

Use a while loop to track purchases and calculate how many more are needed for a free drink.

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