Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 21

PROCESSING STEPS

Applicant Name
BEGIN
DISPLAY (enter Applicant Name) Alex Ferguson
ACCEPT (Applicant Name) Alex Ferguson
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Arsene Wenger
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Graham Turner
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Alec Stock
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Willie Maley
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Dario Gradi
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Jim Smith
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Bobby Robson
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Harry Redknapp
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
BEGIN
DISPLAY (enter Applicant Name) Graham Taylor
ACCEPT (Applicant Name)
DISPLAY(enter gross income)
ACCEPT (gross income)
DISPLAY(enter salary deductions)
ACCEPT(salary deductions)
DISPLAY( enter housing community)
ACCEPT(housing community)
Net Income = Gross Income - Salary Deductions
if housing community is 'providence gardens' and net income >=5500 then
DISPLAY(qualified)
if housing community is 'providence gardens' and net income <5500 then
DISPLAY(not qualified)
else
DISPLAY(we will now check if you are approved)
DISPLAY(enter expenses)
ACCEPT (expenses)
DISPLAY(enter repayments)
ACCEPT(repayments)
sum is repayments + expenses
balance= net income - sum
if balance>= half net income then
DISPLAY (approved)
else
DISPLAY (not approved)
end;
END.
INPUT
Gross Income Salary Deductions Housing Community Net Income Status Expenses

$ 17,700.00
$ 17,700.00
$ 17,700.00 $ 3,935.00
$ 17,700.00 $ 3,935.00
$ 17,700.00 $ 3,935.00 Providence Gardens
$ 17,700.00 $ 3,935.00 Providence Gardens
$ 17,700.00 $ 3,935.00 Providence Gardens $ 13,765.00
Providence Gardens $ 13,765.00
Providence Gardens $ 13,765.00 Qualified
Providence Gardens $ 13,765.00 Qualified
$ 13,765.00
$ 13,765.00
$ 13,765.00
$ 13,765.00 $ 1,215.00
$ 13,765.00 $ 1,215.00
$ 13,765.00 $ 1,215.00
$ 13,765.00 $ 1,215.00
$ 13,765.00 $ 1,215.00
$ 13,765.00
$ 13,765.00

$ 12,000.00

$ 2,910.00

Providence Gardens
$ 9,090.00

Qualified
$ 1,790.00

$ 17,600.00

$ 4,310.00

Providence Gardens
$ 13,290.00

Qualified

$ 1,658.00
$ 11,060.00

$ 2,675.00

Providence Gardens

$ 8,385.00

Qualified

$ 1,639.00

$ 14,800.00

$ 3,610.00

Providence Gardens

$ 11,190.00

Qualified

$ 1,520.00
$ 7,300.00

$ 1,580.00

Providence Gardens

$ 5,720.00

Qualified

$ 1,657.00

$ 19,000.00

$ 4,660.00

Providence Gardens
$ 14,340.00

Qualified

$ 1,676.00

$ 22,790.00

$ 5,607.50

Providence Gardens

$ 17,182.50

Qualified

$ 1,458.00
$ 14,430.00

$ 3,517.50

Providence Gardens

$ 10,912.50

Qualified

$ 1,844.00

$ 9,780.00

$ 2,200.00

Providence Gardens

$ 7,580.00

Qualified
$ 1,690.00
OUTPUT
Loan Repayments Balance Approved Status

$ 4,995.00
$ 4,995.00
$ 4,995.00
$ 7,555.00
$ 7,555.00
Approved
$ 5,332.20

$ 1,967.80

Not Approved

$ 6,037.50

$ 5,594.50

Not Approved
$ 2,910.00

$ 3,836.00

Not Approved

$ 5,568.90
$ 4,101.10

Not Approved

$ 3,510.00

$ 553.00

Not Approved
$ 5,652.00

$ 7,012.00

Not Approved

$ 5,613.45

$ 10,111.05

Approved
$ 5,022.75

$ 4,045.75

Not Approved
$ 5,070.00

$ 820.00

Not Approved

You might also like