Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

design a simple bank account class that can perform basic banking operations on an account IN PYTHON Print each object using standard print method. -

design a simple bank account class that can perform basic banking operations on an account IN PYTHON

Print each object using standard print method.

- Test the following scenarios where your program will succeed:

o Make a deposit of $100 to a1

o Make a withdraw $10 to a2

o Transfer $200 from a1 to a3

o Print the number of accounts created

- Test the following scenarios that we expect will FAIL for these you will want to catch the

exception and print the exception, so that you see the error message, and that rest of your

code continue to run.

o Withdraw $1000 from account a2

o Transfer $900 from a2 to a1

o For all of these, make sure the code is printing some informational messages (see

sample I/O).

create code in python

image text in transcribed

Object Creation: You need to create at least three objects (a1, a2 and a3) passing required parameters: first name, last name and initial balance. Sample information of the objects as follows: Object First name Last name Initial balance Donald Duck 10000 Jane Doe 100 Jack thePlumber 900 a3 Jurpiuiue. pusu. ********** Welcome Donald Duck account ID: al Your current balance is: 10000 *********** kakakakakakakak Welcome Jane Doe account ID: 54 Your current balance is: 100 ***** **** Welcome Jack thePlumber account ID: al Your current balance is: 900 ********* Your current balance is: 10100 Your current balance is: 90 Your current balance is: 1100 Invalid Withdrawal. Insufficient Fund. Invalid Transfer. Insufficient Fund in Sender Account. Total number of accounts: 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions