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
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