top of page
PROGRAMMING CHALLENGES
Restaurant Bill Splitter
Difficulty:
2 Medium
2.2 Practice Exam Questions
Topic:
"Foodie Friends" group wants to simplify splitting the bill when dining out. Write a program that takes the total bill amount, the number of people in the group, and the desired tip percentage, then calculates and prints each person's share of the bill, including the tip.
- Input: Total bill amount, number of people, and tip percentage
- Processing: Divide the total bill amount by the number of people. Add tip amount based on the percentage.
- Output: Print each person's share of the bill including tip.
- Processing: Divide the total bill amount by the number of people. Add tip amount based on the percentage.
- Output: Print each person's share of the bill including tip.
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.
1 hr
40 British pounds1 hr
50 British pounds
bottom of page