Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NEED HELP WITH THIS PYTHON PROGRAM PLEASE! (1) Modify the original BankAccount class Task 1.1: change the initializer method__init so that it can accept one
NEED HELP WITH THIS PYTHON PROGRAM PLEASE!
(1) Modify the original BankAccount class Task 1.1: change the initializer method__init so that it can accept one more parameter owner_name. In this method, after initializing the data attribute balance to orig_bal, this added parameter owner_name will be assigned to a new data attribute name. Task 1.2: create a new method named get_name, which can return the data attribute name of the self object to the caller. (2) Write the main program to create an instance from BankAccount class Task 2.1: create an account for Alice, the starting money she has is $800 and the full owner name is "Alice Smith". Print the owner name and starting balance of the created account Task 2.2: call the corresponding methods to deposit $100 then withdraw $500 from this account. Task 2.3: print the updated balance of this account. Note that you can write the modified BankAccount class and the main program together in one python file, and copy the code into the answer field. Account name: Alice Smith Account balance 800 Accountbalance 400
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