Skip to content

Course home

Programming concepts

Programming concepts

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
Question 56

Write a program using either pseudocode or a high-level programming language of your choice that calculates the value of a discount coupon for a retail customer based on how many loyalty points they have and the number of months they have been active.

The program should:

  • Prompt the user to input the number of loyalty points.
  • Prompt the user to input the number of months they have been active.
  • Calculate and output the value of the discount coupon based on the following rules:
    • If the number of months active is less than or equal to 12 and the number of loyalty points is greater than 200, the discount is the number of loyalty points multiplied by 1.5.
    • If the number of months active is greater than 12, the discount is the number of loyalty points multiplied by 3.0.
    • Otherwise, the discount is 0.

You should use meaningful variable names and correct programming syntax in your answer.

[7]
Markscheme

Programming concepts Questions

  1. GCSE
  2. /Computer Science
  3. /Programming concepts

298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank