Create a program to manage Savings and Current account for user.
- Define class Account which will have class variable balance. Define classes Saving and Current which extended by class Account.
- Account number is required to open any account.
- As a user I should able to withdraw / deposit amount.
- Minimum balance for Current account is 15000 and Savings account is 1000.
- While withdrawing from currunt account do not forget to apply 0.1 charges.
- Function should pass all test cases.
Instructions:
-
Program should be written in file account.py
-
Function names should be Savings and Current for savings and current accounts respectively.
-
Input
Type: Integer or float Value: Deposit Savings - 2000 Current - 16000
-
Expected Output
Type: Integer or float Value: Withdraw Savings - 2000 Current - 14,400