0% found this document useful (0 votes)
45 views9 pages

List of Variables: Who Are Approved. Applicants Who Are Not Approved

The document defines variables to store applicant and housing application data. It includes variables for applicant details like name, ID number, salary, expenses. It also includes variables for housing community qualifications and counts of applicants approved for each community. Additional variables track applicant status, approved/not approved lists, and identify the current applicant being processed.

Uploaded by

Adrian V Kistama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views9 pages

List of Variables: Who Are Approved. Applicants Who Are Not Approved

The document defines variables to store applicant and housing application data. It includes variables for applicant details like name, ID number, salary, expenses. It also includes variables for housing community qualifications and counts of applicants approved for each community. Additional variables track applicant status, approved/not approved lists, and identify the current applicant being processed.

Uploaded by

Adrian V Kistama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

List of variables

IDno – Hold Applicant’s ID number


Fname – First name of applicant
Lname - Last name of applicant
Salary - salary before deductions
S Deduction – all expenses taken from salary
Nsalary - hold applicant’s salary after deductions
Cc - holds Housing community, Clarendon Court
Pg - holds Housing community, Providence Gardens
Sg- holds Housing community, Sangre Grande
CC_QS- holds qualifying salary for Clarendon Court
PG_QS- holds qualifying salary for Providence Gardens
SG_QS- holds qualifying salary for Sangre Grande
Status- determines whether applicant is approved or not approved.
Expenses- stores expense and repayments of applicants
Qualified CC – stores first name, last name, ID number of all applicants qualified for CC
Qualified PG - stores first name, last name, ID number of all applicants qualified for PG
Qualified SG - stores first name, last name, ID number of all applicants qualified for SG
Approved list – stores first name, last name, housing community, ID number of all applicants
who are approved.
Not Approved list - stores first name, last name, housing community, ID number of all
applicants who are not approved
CC count – count and holds applicants who are approved for CC.
PG count - count and holds applicants who are approved for PG.
SG count - count and holds applicants who are approved for SG.
Applicant – Identifies an applicant be number.
Hcommunity – holds applicant housing community that was applied for.
START

Applicant =0

Print “Enter first name, last Name, ID number”. IDNO


Read Fname, Lname, IDNO

Print “Enter gross salary”


Read Gross salary
Print “Sdeduction”
Read “S Deductions”

Print “Enter housing community”


Read H Community

P1
P1

NO If Community = CC
HC
SG or PG

YES

If HSalary = 130,500
YES
PCC and
Hcomunity = CC

NO

If HSalary = 100,500
YES
PSG and
Hcomunity = SG

If HSalary = 95,500
YES
PPG and
Hcomunity = PG

P2
P2

Print first name, Last name, IDNO, Net Income


PSG
PCC Print “ NOT QUALIFIED”

Print first name, Last name, IDNO, Net Income


Print “ Claredon Court”

CC Count <-- CC Count + 1

Qualified CC [ CC Count]
IDNO + Fname + Lname
PR

APPLICANT APPLICANT

IF Applicant = 10

Balance <-- Nsalary X 0.5

Print Balance
Print “ Aexpenses”
Read Aexpenses

NO Print approved <--


Aexpenses = Balance
Read Aexpenses
YES

Applicant <-- 0 Applicant <-- 0

Applicant <-- Applicant + 1 Applicant <-- Applicant + 1

Print Not Approved – List


Print Approved – List [Applicant]
[Applicant]

End
Test Data
First Last ID Total Net Option 1 / Option 2 / Option 3 / Result
Name Name No Salary Requirements Requirements Requirements
Devin Moses 2000 61970 Clarendon Sangre Grande Providence Not
Court >= 100,500 Gardens Approved
130,000 95,500
Avinash Roy 2001 99410 Clarendon Sangre Grande Providence Approved
Court 100,500 Gardens
130,000 95,500
Peace Kumar 2002 69890 Clarendon Sangre Grande Providence Not
Court 100,500 Gardens Approved
130,000 95,500
Mad Rox 2003 157730 Clarendon Sangre Grande Providence Approved
Court 100,500 Gardens
130,000 95,500
Khan Vinay 2004 99770 Clarendon Sangre Grande Providence Approved
Court 100,500 Gardens
130,000 95,500
Singh John 2005 105169.28 Clarendon Sangre Grande Providence Approved
Court 100,500 Gardens
130,000 95,500
Balwan Adam 80690 Clarendon Sangre Grande Providence Not
Court 100,500 Gardens Approved
130,000 95,500
Var

Fname, Lname, IDNO, Hcommunity: string;

CC, SG, PG: char;

NOTQUALFIED: String;

Approved_list [1…22] of string;

N approved_list [1…22] of string;

Student, CC_Count, SG_Count, PG_Count: Integer;

Nsalary, Balance:Real;

Begin

CC_Count := 0;

PG_Count: = 0;

SG_Count: = 0;

Nsalary: = 0;

Balance: = 0;

For Applicant: = 1 to 10 do

{Input of Applicant data}

Begin

WriteIn;

WriteIn(‘Enter your Name:’);

ReadIn (Name);

WriteIn(‘Enter the IDNO:’);

ReadIn(IDNO);

WriteIn(‘Enter your choosen Housing community:’);

ReadIn(Hcommunity);
Repeat

WriteIn(‘Enter your Monthly Gross Income:’);

ReadIn(Gsalary);

WriteIn(‘Enter your Monthly Salary deductions:’);

ReadIn(Sdeduction);

Nsalary= Gsalary-Sdeduction

WriteIn(‘The Net Salary is:’ Nsalary);

WriteIn(‘Your choice of Housing community is:’)

ReadIn(Hcommunity)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy