Computer
Computer
Computer Studies
Required Questions
1.Discuss any two tools that can be used to present an algorithm.
Pseudocode:Pseudocode is a high-level description of an algorithm that combines natural language
elements with programming-like structures
Flowcharts:Flowcharts are graphical representations of algorithms using various shapes and arrows to
represent different steps and decision points.
2. Write a pseudocode using repeat...until loop that would reduce 500 by 5 as it displays the integers
until zero is obtained.
Algorithm: ReduceByFive
Input: None
BEGIN
REPEAT
Display num
num = num - 5
END
3. Distinguish between system flowchart and program flowchart.
System flowchart is a type of flowchart that explains the functionality of an entire system. In contrast, a
program flowchart is a type of flowchart that explains how a particular program solves a given task.
4. A company’s workers travel to work either by public or private means. All workers are paid a
travel allowance of Ksh 200, but those using private means are paid an additional Ksh. 100.
5. A form one admission interview consists of four tests; Mathematics, English, Kiswahili and
Science. In order to qualify for admission, an applicant must attain a minimum average of
65% in the four tests and not less than 70% in Mathematics. All applicants must sit for the
interview. Draw a flowchart that would read the scores for each applicant and determine
whether an applicant is successful or not.