0% found this document useful (0 votes)
7 views1 page

Module End Assignment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Module End Assignment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Module End Assignment

Task: Create a BankAccount class with attributes


account_number, holder_name, and balance. Include
methods for:

 deposit(amount) to add money to the balance.


 withdraw(amount) to deduct money from the balance.
 Display account details using a display() method.

Please note that the user should only be able to withdraw


an amount if it is in the limit of the available balance. Also
keep in mind to not to execute all the methods at once.
Instead ask for users input and based on that input
execute any method that the user asks for.

Allocated Days: 2 Days

You might also like