The algorithm in Figure 2 has been developed to automate the quantity of dog biscuits to put in a dog bowl at certain times of the day - AQA - GCSE Computer Science - Question 3 - 2021 - Paper 1
Question 3
The algorithm in Figure 2 has been developed to automate the quantity of dog biscuits to put in a dog bowl at certain times of the day.
Line numbers are included bu... show full transcript
Worked Solution & Example Answer:The algorithm in Figure 2 has been developed to automate the quantity of dog biscuits to put in a dog bowl at certain times of the day - AQA - GCSE Computer Science - Question 3 - 2021 - Paper 1
Step 1
Shade one lozenge which shows the line number where selection is first used in the algorithm shown in Figure 2.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Line number 2
Step 2
Shade one lozenge which shows the line number where iteration is first used in the algorithm shown in Figure 2.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Line number 11
Step 3
State how many times the subroutine DISPENSE_BISCUIT will be called with the parameter 'chewies' if the user input is 'lunch'.
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!