Program: Determine Whether an applicant is Approved
START
Define The Royal, The Royal AS STRING
Define Gross Income, Salary Deduction, The Royal, Total Loan Payments, Total
Expenses, Ba lance AS INTEGER
Gross Income=Salary deduction=Total Loan Payments=Total Expenses=Balance=0
Set Count = 0
Choice = Y
While Choice <> N Do
Print Enter Gross salary, Salary deduction, Total Loan Payments, Total
Expenses, and Balance
Input The Applicant Name, Gross salary, Salary deduction
PRINT Gross salary, Salary deduction, Total Loan Payments, Total Expenses,
and Balance
Net salary= Gross Salary-Salary deduction
IF Net Salary > $12000 then
Print Applicants Name
Print Qualified ELSE
Print Not Qualified
1
IF Total Expenses + Total Loan Payments<= 2 *Balance then
Print Applicants Name
Print Approved ELSE
Print Unapproved
end if
end if
Print Do you wish to continue, press Y for Yes and N for No
The Royal as String
Define
Read Gross Salary, Salary Deduction, The Royal, Total Loan Payments, Total
Expenses, Balance
Net salary= Gross Salary-Salary deduction
IF Net salary >Qualifying Salary THEN
Output Applicant qualified ELSE
Applicant Not- Qualified
1
IF Total Expenses + Total Loan Payments<= 2 *Balance
Output Applicant Approved ELSE
Applicant Not Approved
Start
Enter Net Salary, Total Expenses, Total Repayment As Integer
The Royal As String
Read Net Salary, Total Expenses, Total Repayment, The Royal
1
IF Applicants Balance>= 2 *Net Income THEN
PRINT applicant approved ELSE
Applicant not-approved