Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task-4 Create a Bank Account class with Account Number, Account Name, Pin and Total Balance as instance attribute Create Withdraw method that will take the
Task-4 Create a Bank Account class with Account Number, Account Name, Pin and Total Balance as instance attribute Create Withdraw method that will take the amount from the user and than reduce it from the balance. Create Deposit method that will take the amount from the user and than add it to the balance. Remember show the total balance after each deposit or withdrawal made by the user. COPY THIS PORTION: #Write your code here #Do not change the following code: Tom_Holden= BankAccount("234729920000034", "Tom Holden", 45879, 7854124) Tom_Holden.deposit(34000) Tom_Holden.withdraw(2145000) OUTPUT: Account Number: 234729920000034 Account Name: Tom Holden Pin: 45879 Total Balance: 7.854,124 After deposit of 34,000 the Total Balance in the account is 7,888,124. After withdrawal of 2,145,000 the Total Balance in the account is 5,743,124. In [ ]: N 1 #write your code here 3 # TODO 5 #Do not change the following code: 6 Tom_Holden= BankAccount("234729920000834", Tom Holden, 45879, 7854124) 7 Tom_Holden.deposit(34080) 8 Tom Holden. withdraw ( 2145000)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started