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

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.6: A Closer Look: Namespaces And Creating A Personal Library
Problem 5E
icon
Related questions
Question

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

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning