4.1 Algorithms and flowcharts
16 questions in this subtopic. Open a question to solve it and check the official answer.
Algorithms and flowcharts · 8 marks · official answer ready
5 Lucia has written an algorithm in pseudocode to determine whether a number (X) is a factor of another number (Y). X is a factor of Y if the result of Y/X is a whole number. • Th…
Algorithms and flowcharts · 8 marks · official answer ready
7 A teacher is writing a program to process test marks for a class. For marks above 70, the program will output “You have achieved a Distinction”. For marks from 55 to 70, the pro…
Algorithms and flowcharts · 5 marks · official answer ready
13 The average (mean) of a set of 12 numbers is calculated by: • adding the numbers together to get a total • dividing the total by 12. A student has attempted to draw a flowchart…
Algorithms and flowcharts · 8 marks · official answer ready
12 Employees log in to their company’s database with a User ID and password. A login screen is displayed. A user enters their User ID. If employees have forgotten their password, …
Algorithms and flowcharts · 8 marks · official answer ready
7 A company employs workers as: • labourers who are paid $18 per hour • office workers who are paid $22 per hour • managers who are paid $30 per hour. A computer programmer has wr…
Algorithms and flowcharts · 8 marks · official answer ready
9 Sukhjinder, a mathematics student, has defined a procedure using pseudocode. It calculates the area of a parallelogram by multiplying the base by the height. All parallelograms …
Algorithms and flowcharts · 6 marks · official answer ready
8 The average (mean) of a set of 10 numbers is calculated by: • adding the numbers together to get a total • dividing the total by 10. Juan has attempted to draw a flowchart of an…
Algorithms and flowcharts · 8 marks · official answer ready
9 A programmer is writing an algorithm in pseudocode to determine whether a number is a factor of another number. Y is a factor of X if the result of X/Y is a whole number. In pse…
Algorithms and flowcharts · 6 marks · official answer ready
10 Gustav has started to write an algorithm using pseudocode. It will input 6 numbers, all less than 1000, and output the smallest value. Complete the algorithm using pseudocode. …
Algorithms and flowcharts · 8 marks · official answer ready
(b) Complete this pseudocode algorithm to show the processing which takes place to control the temperature of the greenhouse. WHILE system switched on INPUT temperature IF tempera…
Algorithms and flowcharts · 6 marks · official answer ready
8 A teacher wishes to produce a computer program to output the grades awarded for all of her students. If a student scores: • more than 60 marks, they are awarded a grade A • 50 –…
Algorithms and flowcharts · 6 marks · official answer ready
6 Many houses in cooler countries have central heating systems. In a central heating system, microprocessors are used to control the pump which sends water from the boiler to the …
Algorithms and flowcharts · 6 marks · official answer ready
(a) Complete the following pseudocode algorithm which shows the process of updating the master file. You can assume no other transactions are being carried out. READ first record …
Algorithms and flowcharts · 7 marks · official answer ready
8 A microprocessor-controlled car park barrier is used to allow cars to enter a car park. When a car approaches the barrier, the barrier automatically rises to allow the car to en…
Algorithms and flowcharts · 7 marks · official answer ready
11 Complete the flowchart below to add up 6 numbers. Use the variable total to store the sum of the numbers and the variable count to control the number of times the loop is repea…
Algorithms and flowcharts · 8 marks · official answer ready
7 The average (mean) of a set of numbers can be found by adding the numbers together and dividing the resulting total by how many numbers there are in the set. Write an algorithm …
