Question 1
Edexcel Computer Science June 2023 Paper 2GCSE7 marks
On the specification
- 6.1 Develop code6.2 Program constructs6.3 Data types and structures
Question text
1 A program is being developed to show the average daily temperature and add up the costs of buying ice cream. • It displays each temperature stored in an array of temperatures. • It adds up all the ice cream costs entered by the user, until the user enters 0. • It then calculates a discount. When the total cost is over 100.00, the discount is 10%. Otherwise, the discount is 5%. Open file Q01.py Amend the lines at the bottom of the code to give the: • name of a constant used in the program • name of an array used in the program • line number of an initialisation of a variable with a real number • line numbers for a selection construct • line numbers for a repetition construct • line numbers for an iteration construct • line number for an instruction that outputs information to the screen. Do not add any additional functionality. Save your amended code file as Q01FINISHED.py (Total for Question 1 = 7 marks)