The criteria to qualify to get a loan from Zed Bank is described as follows
First the applicant must have an account with the bank. If the applicant does not have an account with the bank, they are given the message, “Please open an account before applying”. If the applicant has an account, the period of time the applicant has been with the bank is checked. If the period is less than 2 years, the applicant is given the message, “You have not banked with us for more than 2 years”. If the period is 2 or more years, the credit record is then checked. If the credit record is “bad”, the applicant is given the message, “Your credit history is bad”. If the credit history is “good”, the applicant is asked for the amount they would like to borrow. If the amount entered is above K250,000, the applicant is given the message, “The maximum credit allowed is K250,000”.if the amount is between K500 to K250,000, the applicant is given the message, “Congratulations you qualify to get this loan”. If the amount is below K500, the applicant is given the message, “the amount is below the minimum limit”.
Write a program that uses nested if statements to determine whether a person qualifies for a loan or not.
Answers
Answer:
The criteria to qualify to get a loan from Zed Bank is described as follows
First the applicant must have an account with the bank. If the applicant does not have an account with the bank, they are given the message, “Please open an account before applying”. If the applicant has an account, the period of time the applicant has been with the bank is checked. If the period is less than 2 years, the applicant is given the message, “You have not banked with us for more than 2 years”. If the period is 2 or more years, the credit record is then checked. If the credit record is “bad”, the applicant is given the message, “Your credit history is bad”. If the credit history is “good”, the applicant is asked for the amount they would like to borrow. If the amount entered is above K250,000, the applicant is given the message, “The maximum credit allowed is K250,000”.if the amount is between K500 to K250,000, the applicant is given the message, “Congratulations you qualify to get this loan”. If the amount is below K500, the applicant is given the message, “the amount is below the minimum limit”.
Write a program that uses nested if statements to determine whether a person qualifies for a loan or not.