Question: Python problem: Create a program that creates a class called BankAccount with the following functions and variables: Functions Variables Deposit (money, pin) Withdraw (money, pin)
Python problem:
Create a program that creates a class called BankAccount with the following functions and variables:
| Functions | Variables |
| Deposit (money, pin) Withdraw (money, pin) GetCurrentBalance (pin) VerifyPinNumber (pin) | Balance Pin
|
The balance should be initialized with an amount of zero and should require the user to specify a 4-digit pin number on creation There must be checks in place to ensure that the user doesnt deposit a negative number and doesnt withdraw more than they have in their account, and notify the user if any errors occur To make a deposit, withdrawal, or view the current balance, the user must enter and verify their pin number. An object of BankAccount should be created and all of the functions called
PROGRAM MUST CONTAIN & USE A MAIN FUNCTION
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
