Question 8

AQA Computer Science June 2022 Paper 1B (8525/1B)GCSE7 marks

On the specification

3.2 Programming
Question text

8 Write a Python program that calculates the value of a bonus payment for an employee box based on how many items they have sold and the number of years they have been employed. The program should: • get the user to input the number of items sold • get the user to input the number of years employed • output the value of the bonus payment: o if the years of employment is less than or equal to 2 and the number of items sold is greater than 100, then the bonus will be the number of items sold multiplied by 2 o if the years of employment is greater than 2, then the bonus will be the number of items sold multiplied by 10 o otherwise, the bonus is 0 You should use indentation as appropriate, meaningful variable name(s) and Python syntax in your answer. The answer grid below contains vertical lines to help you indent your code. [7 marks]