Skip to content

Course home

Develop code

Develop code

EasyMediumHard
1234567891011121314151617181920212223242526
Question 18

A retail company runs a special promotional event called a Super-Discount Year based on the current calendar year.

A year is classified as a Super-Discount Year if:

  • it can be exactly divided by 500
  • OR it can be exactly divided by 10, but not exactly divided by 100.

For example:

  • These years are Super-Discount Years: 1500, 2010, 2030, 2500.
  • These years are not Super-Discount Years: 1900, 2100, 2024.

A program is needed that will take a year as an integer input from the user, determine whether it is a Super-Discount Year or not, and output an appropriate message.

Write a program to solve this problem.

You can use the layout below to structure your code:

year = int(input("Enter a year: "))

# Write your code here
[6]
Markscheme

Develop code Questions

  1. IGCSE
  2. /Computer Science
  3. /Develop code

62 exam-style questions on Edexcel IGCSE Computer Science Develop code. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank