| 1. |
Please complete this task and i will mark you as brainliest |
Answer» Program:def calculate_loan(account_number,SALARY,account_balance,loan_type,loan_amount_expected,customer_emi_expected): eligible_loan_amount=0 bank_emi_expected=0 i=0 typ_lon = ['Car','House','Business'] ban_exp_lon = [500000,6000000,7500000] sal = [25000,50000,75000] bank_exp_emi = [36,60,84] if INT(account_number/1000) == 1 : if account_balance >= 100000 : while i<3: if loan_type == typ_lon[i] and salary > sal[i]: eligible_loan_amount = ban_exp_lon[i] bank_emi_expected = bank_exp_emi[i] if loan_amount_expected <= eligible_loan_amount and customer_emi_expected <= bank_emi_expected: print("Account number:", account_number) print("The customer can avail the amount of Rs.", eligible_loan_amount) print("Eligible EMIs :", bank_emi_expected) print("Requested loan amount:", loan_amount_expected) print("Requested EMI's:",customer_emi_expected) break else : print("The customer is not eligible for the loan") break else: if i == 2: print("Invalid loan TYPE or salary") i = i + 1 else : print("Insufficient account balance") else : print("Invalid account number") a = int(input("Enter account number")) b = int(input("Enter salary")) c = int(input("Enter bank balance")) d = input("Enter type of loan") e = int(input("Enter loan amount")) F = int(input("Enter emi for loan amount")) calculate_loan(a,b,c,d,e,f) Output:Enter account number1234 Enter salary30000 Enter bank balance2550000 Enter type of loanCar Enter loan amount300000 Enter emi for loan amount30 Account number: 1234 The customer can avail the amount of Rs. 500000 Eligible EMIs : 36 Requested loan amount: 300000 Requested EMI's: 30 ----HOPE this helps :) |
|