Problem Solving
Problem Solving
Information Technology
School Based Assessment Topic: Elections
Problem Solving
Task #1
Write an algorithm that will display the names of the candidates who should receive a refund. A
refund is due if the votes received by the candidates exceeds 20% of the votes cast in the
constituency. Find the average of the votes cast for three (3) consecutive constituencies and use it
as part of the criteria to determine eligibility of candidates. The algorithm will determine and
display a list of all the candidates and the status of their refund. Use a sample size of twelve (12)
candidates to run your algorithm. The algorithm must accept the names of the candidates, votes
received and the votes cast in the constituency. The heading ‘REFUND STATUS OF
CANDIDATES’ should be displayed at the top. Each of the names of the 12 candidates sampled
should be stated along with the words ‘REFUND DUE’ or ‘NO REFUND’ depending on their
eligibility. Data must be sourced from the spreadsheet.
NB: Ensure Name of Programmer and Date Created are headings placed at the top of the
algorithm. Ensure algorithm terminology is used when writing pseudocode.
Task #2
Design and complete a trace table to test the algorithm developed in the previous task. The table
should have a maximum of twelve (12 iteration).
Program Implementation
Task #1
Write a problem statement for the algorithm developed. The statement must not exceed two lines
and must be one paragraph. Identify the problem you are trying to solve and the criteria that will
be used to solve the problem.
Task #2
Using the program Ezy Pascal, convert the algorithm to program code to determine the accuracy
and effectiveness of the algorithm.