Based on the loan application records of a bank and the example of query, write a program that determines whether a loan applicant is to be approved or disapproved his/her loan application. Criteria of an application to be considered are assets, income and the loan value. Applicant with assets > income and loan value =< assets will be approved the loan, meanwhile those who do not meet the condition will not be approved. The program will terminate as user typed in “exit”.
Example query (expected output):
Enter Applicant ID : 123dav.
Enter Loan Value : 4000.
Loan application by david is approved
Enter Applicant ID : 123sar.
Enter Loan Value : 10000.
Loan application by sarah is not approved
Enter Applicant ID : 123sit.
Enter Loan Value : 5000.
Loan application by siti is approved
Enter Applicant ID : exit.
Exiting program... Thank you