{Name: Alinthia Auguiste} {Title: Approved Applicants} {Purpose: To determine whether an applicant is approved for allocation of a home in a named housing community} {Date: 2/25/2015} Program Approved_or_Not; Var App_Name, community, spouse: string; Salary, Salary_Deduction, Spouse_Goss, spouse_Deduction, NetIncome, NetIncome2: real; ApprovedA, ApprovedB: real; I: integer; Begin writeln ('Welcome to the Housing allocation project program, please enter some personal information to see if you are qualified for the housing community you have chosen'); FOR I := 1 to 10 DO begin writeln ('Please enter your full name and press <ENTER>'); readln (App_Name); writeln ('Please enter housing community applying for - as St. Joseph, Cotton Hill or Grand Bay'); readln (community); writeln ('Please enter your salary without the deduction'); write('$ '); readln (Salary); writeln ('Please enter your salary deduction'); write('$'); readln (Salary_Deduction); writeln ('Do you have a spouse? Enter YES or NO'); readln (spouse); If (spouse = 'YES') THEN Begin writeln ('Enter spouse Goss Salary'); write('$ '); readln(Spouse_Goss); writeln ('Enter Spouse Salary deduction'); write ('$ '); readln(spouse_Deduction); NetIncome := ((Salary + Spouse_Goss) – (spouse_Deduction + Salary_Deduction)); writeln('The Net Income is $ ',NetIncome:0:2); end Else if (spouse = 'NO') THEN Begin writeln ('Applicant has No spouse'); NetIncome2 := (Salary - Salary_Deduction); writeln('The Net Income is $ ',NetIncome2:0:2); end; ApprovedA := (NetIncome / 2); ApprovedB := (NetIncome2 / 2); Writeln; If (NetIncome >= ApprovedA) OR (NetIncome2 >= ApprovedB) THEN writeln('Congratulations! ', App_Name,' has been approved for Housing in the community of ', community,'.') else writeln('Sorry! ', App_Name, ' Did not Qualify.'); end; End. Welcome to the Housing allocation project program, please enter some personal information to see if you are qualified for the housing community you have chosen Please enter your full name and press <ENTER> Abraham Joseph Please enter housing community applying for - as St. Joseph, Cotton Hill or Grand Bay Grand Bay Please enter your salary without the deduction $ 2442.00 Please enter your salary deduction $522.35 Do you have a spouse? Enter YES or NO YES Enter spouse Goss Salary $ 6564.00 Enter Spouse Salary deduction $ 1243.70 The Net Income is $ 7239.95 Congratulations! Abraham Joseph has been approved for Housing in the community of Grand Bay.