Example HTML page

# Python Exercise 17

Hi,

Please do the following programs. The questions are based on different topics in python.

1. An account holder has Two offers to take a personal loan from two Banks i.e HDFC and ICICI. Both the banks offered the loan in the range from 2 lakhs to 3 lakhs to him. If the account holder requested more than 3 lakhs it should display a message that the maximum loan given to you is 3 lakhs. HDFC Bank offers the loan at with some interest (i.e 10% of the loan amount per year) with a processing fee ( i.e. 1000 INR per year). ICICI Bank offers the loan at with some interest (i.e 9% of the loan amount per year) with a processing fee ( i.e. 950 INR per year). If the account holder requested a loan amount your program should print the bank name in which the total amount to be paid is less for a total of 10 years.

The total amount to be paid is the sum of loan amount, processing fee of 10 years and interest of 10 years.

Input
Loan_amount
Processing_fee of Bank 1
Processing_fee of Bank 2
Interest_rate of Bank 1
Interest_rate of Bank 2
Tenure_of_Loan

Output
either HDFC Bank or ICICI Bank

2.  There are ‘3’ banks offering loan to their customers. Each bank has different interest rates for different years. Find the Total Money to be paid by the customer for the bank to the given loan amount along with the bank name. For example if the loan amount is 10000 INR, print the name of the bank in which the total amount to be paid is less for the given period.

Interest Rates are given as follows:

 Bank 1 Bank 2 Bank 3 First Year 7% 6% 9% Second Year 8% 9% 6% Third year to Fifth Year 3% 6% 5% More than 5 years 6% 3% 4%

Input

Loan amount

Tenure

Output

Bank 1 or Bank 2 or Bank 3

Total amount to be paid.

Example HTML page