Question: 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!

NEED HELP WITH THIS PYTHON PROGRAM PLEASE! (1) Modify the original BankAccount

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!