Programming
Programming
TASK A – Algorithm
1. Write a Problem Statement that defines the problem that the program will be designed to solve.
2. Write an algorithm using flowchart or Pseudocode to determine if an applicant is approved for
allocation of a house in a named housing community – up to 32 applicants are processed in a
day. Your algorithm should:
a. Prompt the user to enter the applicant’s name, ID, housing community code, gross
salary, salary deductions, total expenses, and total loan repayments.
b. Accept and store the values entered
c. For each applicant, calculate the net income and determine if the applicant qualifies for
the selected community based on the qualifying income from the spreadsheet section of
the SBA
d. If qualified, calculate the applicant’s disposable income and determine if the applicant is
approved. Approval is given if the applicant’s disposable income (balance) is greater
than or equal to half of the net income.
Balance = Net income – (expenses + loan payments)
e. For each applicant, print a detailed record showing the following:
i. Name
ii. Housing community.
iii. Status – Qualified or Not Qualified
iv. Status – Approved or Not Approved
f. Calculate and print the following:
i. The total number of applicants for each community
ii. The total number of approved applicants
iii. The average net income of the approved applicants
iv. The average balance of the approved applicants
13 | P a g e
a. Applicant’s name, gross salary, deductions, expenses, total loan payment and housing
community
b. Determine the applicant’s net salary and state if applicant qualifies for the housing
community selected
c. Determine the applicants balance and approval status
d. Total number of applicants for each community and approved applicants
e. Determine the average net income and average balance of approved applicants.
TASK C – Programming
4. Use the programming language PASCAL to implement your algorithm done in step 2. Ensure
you include comments to explain your Pascal code. Your program should also include the
following documentation:
a. Your Name
b. Name of Program
c. Brief description of your program
d. Month and year of completion.
e. Comments to explain the use of loops and conditional branches.
Task D – Documentation
The problem solving and program design should be submitted in one document. The document
should be called LastName_FirstName_ProgramDocumentation.pdf
This documentation will include the following:
1. Cover Sheet – A cover page with your candidate information. It should include: Your Full
Name, School, Centre Number, Candidate Number, and Territory.
2. Table of Content (auto generated) – All pages must be numbered.
3. Problem Definition – Statement of the problem from Task.
4. Algorithm – The pseudocode OR flowchart with the line numbers.
5. Source Code – a copy of the pascal code.
6. Trace table and Test Data – a copy of the table in Task B.
7. Program Execution – Screenshots of the working program with each set of data entry and the
results produced. Use the same data given in Task B
14 | P a g e