top of page
PROGRAMMING CHALLENGES
Leap Year Checker
Difficulty:
2 Medium
1.5 Selection
Topic:
Write a program that asks the user to enter a year and determines whether it is a leap year or not. A year is a leap year if it is divisible by 4, except for years divisible by 100, which are not leap years unless they are also divisible by 400.
INPUTS: Year (integer)
PROCESSES:
1. Accept user input for the year
2. Use selection statements and logical operators to check if the year is a leap year based on the given conditions
OUTPUTS: Message indicating whether the year is a leap year or not (string)
PROCESSES:
1. Accept user input for the year
2. Use selection statements and logical operators to check if the year is a leap year based on the given conditions
OUTPUTS: Message indicating whether the year is a leap year or not (string)
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
50 British pounds1 hr
55 British pounds
bottom of page