top of page

PROGRAMMING CHALLENGES

Gym Membership Manager

Difficulty:

2 Medium

2.2 Practice Exam Questions

Topic:

Part 1: Create a program to manage gym memberships. Input the duration (in months) and membership type (Standard, Premium). Standard costs £20/month, Premium costs £35/month. Part 2: Extend the program to include a 5% discount for memberships of 12 months or more. Output the total cost.

Inputs: Duration, membership type. Outputs: Membership cost. Calculations: Use if-else for membership type, apply discount if applicable. Variables: duration, membership_type, 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