Algorithm design and problem-solving
175 questions. Open a question to solve it and check the official answer.
Algorithm design and problem-solving · 5 marks · official answer ready
(b) Write an algorithm to complete Task 1, using either pseudocode, programming statements or a flowchart. ........................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(i) Name and describe one suitable validation check you used for Task 1, and one suitable validation check for Task 2. Each check MUST be different. Task 1 Name ..................…
Algorithm design and problem-solving · 4 marks · official answer ready
(ii) For each validation check in part (c)(i), give an example of suitable test data and explain why you chose the test data. Test data for (c)(i) Task 1 .........................…
Algorithm design and problem-solving · 27 marks
(c) Write an algorithm, using pseudocode, to input a number between 0 and 100 inclusive. The algorithm should prompt for the input and output an error message if the number is out…
Algorithm design and problem-solving · 5 marks · official answer ready
(c) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. You can assume that Task 1 has been completed. You do not need to produc…
Algorithm design and problem-solving · 4 marks · official answer ready
2 (a) Write an algorithm to input three different numbers, and then output the largest number. Use either pseudocode or a flowchart. ..............................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(b) Give two sets of test data to use with your algorithm in part (a) and explain why you chose each set. Test data set 1 .........................................................…
Algorithm design and problem-solving · 5 marks · official answer ready
3 This flowchart inputs the weight of items in kilograms to be loaded on a trailer. Any item over 25 kilograms is rejected. The trailer can take up to 100 kilograms. START TotalWe…
Algorithm design and problem-solving · 2 marks · official answer ready
(a) Find the error in the pseudocode and suggest a correction. Error ..............................................................................................................…
Algorithm design and problem-solving · 5 marks · official answer ready
(b) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. You can assume that Task 1 has been completed. .........................…
Algorithm design and problem-solving · 18 marks
11 Print Average There are four errors in this code. Locate these errors and suggest a correction to remove each error. Error 1 ...................................................…
Algorithm design and problem-solving · 21 marks
(b) State the data type you would choose for each of the following fields. Play ...................................................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(b) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. You can assume that Task 1 has been completed and that there are three c…
Algorithm design and problem-solving · 18 marks · official answer ready
10 …………………………………………………………………….. …………………………………………………………………….. 20 …………………………………………………………………….. …………………………………………………………………….. [4] 8 3 The flowchart below inputs the price of an item u…
Algorithm design and problem-solving · 5 marks · official answer ready
(b) Write an algorithm to complete Task 1, using either pseudocode, programming statements or a flowchart. ........................................................................…
Algorithm design and problem-solving · 6 marks · official answer ready
(c) Give three different data sets that could be used to check your validation rules for Task 1. Explain why you chose each data set. Data set 1 ..................................…
Algorithm design and problem-solving · 21 marks · official answer ready
8 PRINT Small (i) Identify three changes you would need to make to find the largest number input instead of the smallest number. 1 ................................................…
Algorithm design and problem-solving · 5 marks · official answer ready
(b) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. You can assume that the weight and contents have already been checked an…
Algorithm design and problem-solving · 2 marks · official answer ready
(i) Give two different data values that could be used to check your validation rules for sand in Task 1. Explain why you chose each value. Sand data value 1 ......................…
Algorithm design and problem-solving · 2 marks · official answer ready
(ii) Give two different data values that could be used to check your validation rules for cement in Task 1. Explain why you chose each value. Cement data value 1 .................…
