Programming
Programming
This program will determine whether an applicant is approved for allocation of a home in a named housing
community. The algorithm/pseudocode should accept the name of the applicant and his/her gross salary as well as
deductions. The net salary should be calculated. An applicant qualifies if the net salary is above the qualifying salary
for that housing community. The algorithm should then determine whether the applicant is approved. Approval is
granted should the sum of applicant’s expenses the repayments not exceed half of the balance.
Algorithm
START
DECLARATION OF VARIABLE:
applicant_name AS STRING ← ""
gross_salary, deductions, expenses, repayments, qualifying_salary AS REAL ← 0.0
net_salary, balance AS REAL ← 0.0
no_of_applicant AS INTEGER ← 0
PRINT "Please enter the number of person you wish to check: "
READ no_of_applicant
PRINT "Enter the qualifying salary for the housing community: "
READ qualifying_salary
no_of_applicant=no_of_applicant-1
END-WHILE
STOP