Question 6
AQA Computer Science June 2024 Paper 1B (8525/1B)GCSE7 marks
On the specification
- 3.2 Programming
Question text
6 A university is writing a program to calculate a student’s total mark for three essays. box If any essays are handed in late, the total mark is reduced. Write a Python program to calculate the total mark. You should assume there are three integer variables called e1, e2 and e3 which have already been given values to represent the marks of the three essays. The program should: • get the user to enter the number of essays handed in late and store the number in a variable • calculate the total mark for the three essays o if only one essay is handed in late, the total mark is reduced by 10 o if more than one essay is handed in late, the total mark should be halved o the total mark should not be less than 0 • output the total mark. 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]