Z Bank wants you to create a simple python program for calculating interest rate and Total balance for their customers. The program should start by reading Name of client, account number, credit amount, credit type and credit term (credit term means number of years to clear the credit). Then you need to do the following: Create a void function that will display “Z Bank, Nizwa welcomes you Mr/Ms :” Create a function with return value and with parameters that will compute interest rate based on credit type and credit amount. interest rate is 8% of credit amount if it is Gold credit. 9% of credit amount if it is Student credit. 10% of credit amount if it is Business credit. 13% of credit amount if it is personal credit Create a function with return value that will accept the computed interest rate as one of the parameters and will compute the total balance based on the credit term and credit amount. so, total balance to be calculated as: credit amount + (interest rate * credit term). Calling all the above functions, display the output as shown below: Sample output Enter the Name of Client: Khadija Enter Account Number: 789123456 Enter Credit amount in OMR: 4000 Enter Credit Type (Gold/Student/Business/Personal): Student Enter Credit term in years: 3 --------------------------------------------- Z Bank welcomes you Mr/Ms: Khadija --------------------------------------------- Interest rate : 360.0 Total Balance : 5080.0
Z Bank wants you to create a simple python program for calculating interest rate and Total balance for their customers. The program should start by reading Name of client, account number, credit amount, credit type and credit term (credit term means number of years to clear the credit).
Then you need to do the following:
- Create a void function that will display “Z Bank, Nizwa welcomes you
Mr/Ms :<name of client>”
- Create a function with return value and with parameters that will compute interest rate based on credit type and credit amount.
interest rate is 8% of credit amount if it is Gold credit.
9% of credit amount if it is Student credit.
10% of credit amount if it is Business credit.
13% of credit amount if it is personal credit
- Create a function with return value that will accept the computed interest rate as one of the parameters and will compute the total balance based on the credit term and credit amount. so, total balance to be calculated as: credit amount + (interest rate * credit term).
- Calling all the above functions, display the output as shown below:
Sample output
Enter the Name of Client: Khadija
Enter Account Number: 789123456
Enter Credit amount in OMR: 4000
Enter Credit Type (Gold/Student/Business/Personal): Student
Enter Credit term in years: 3
---------------------------------------------
Z Bank welcomes you Mr/Ms: Khadija
---------------------------------------------
Interest rate : 360.0
Total Balance : 5080.0

Step by step
Solved in 2 steps









