1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mama L [17]
1 year ago
6

Python Programming

Computers and Technology
1 answer:
Phoenix [80]1 year ago
8 0

The python program that creates a Bankaccount class for a Bank ATM that is made up of the customers and has a deposit and withdrawal function is given below:

<h3>Python Code</h3>

# Python program to create Bankaccount class

# with both a deposit() and a withdraw() function

class Bank_Account:

def __init__(self):

 self.balance=0

 print("Hello!!! Welcome to the Deposit & Withdrawal Machine")

def deposit(self):

 amount=float(input("Enter amount to be Deposited: "))

 self.balance += amount

 print("\n Amount Deposited:",amount)

def withdraw(self):

 amount = float(input("Enter amount to be Withdrawn: "))

 if self.balance>=amount:

  self.balance-=amount

  print("\n You Withdrew:", amount)

 else:

  print("\n Insufficient balance ")

def display(self):

 print("\n Net Available Balance=",self.balance)

# Driver code

# creating an object of class

s = Bank_Account()

# Calling functions with that class object

deposit()

s.withdraw()

s.display()

Read more about python programming here:

brainly.com/question/26497128

#SPJ1

You might be interested in
The picture above is a description of the C code below. Please modify the C below so that it uses FILE HANDLING (fopen, fputs, f
siniylev [52]

Answer: i just learned something new.

Explanation:

3 0
3 years ago
Which best describes the benefits of renting a home
ANTONII [103]
Is it multiple choice or an essay question? If its an essay question I would say Living alone, being able to rent YOU'RE own home, and probably being able to decorate it the way you want. 
5 0
2 years ago
Read 2 more answers
I need help. People who know computer science. I have selected a word from the first 1000 words in my dictionary. Using the bina
Rudiy27

Answer:

14

Explanation:

8 0
3 years ago
You replaced the LCD panel in a laptop computer and verified full system functionality, including wireless connectivity. The cus
Degger [83]

Answer:

There was a mistake in the question. The question included a possible answer. I agreed with the answer given and provide an explanation why I agreed with the answer given.

ANSWER: The laptop's wireless radio is toggled to the off position

Explanation:

Since the laptop technician has verified full system functionality before the customer picked up the item then the problem is likely a setting issue. For the technician to test the wireless connectivity and was satisfied, it means the wireless LAN card was installed and the antennas are working to verify there are no hardware issues. The correct device driver must have been installed as well. Since other users can connect to the WAP it means it is not an external problem. All that is left to check is if the wireless radio is ON or OFF. The customer must have mistakenly toggled the wireless radio OFF and he needs to turn it on in other to connect to the Wireless Access Point.

3 0
3 years ago
4. What is the package name in which the Scanner class resides?
Ahat [919]
Related Articles. Scanner is a class in java. util package used for obtaining the input of the primitive types like int, double, etc. and strings.
7 0
2 years ago
Other questions:
  • What is the name of the port that you plug an ethernet network cable into?
    6·1 answer
  • What is the importance of Mathematical Modeling in the field of bioinformatics.
    8·1 answer
  • What does intergrated organization mean
    15·1 answer
  • I need urgent help...my laptop has been like this... can anyone help me plzzz​
    6·1 answer
  • The _____ is a blinking vertical line that indicates where the next typed character will appear. scroll box sheet tab insertion
    7·1 answer
  • Which K-Drama was made in 2009?
    5·2 answers
  • What are examples of templates the Input Mask Wizard offers? Check all that apply.
    12·2 answers
  • What does a file association specify?
    10·2 answers
  • How do you change the order of the slides in your presentation in the slide pane 
    15·2 answers
  • What is the primary way that social networks work? Multiple Choice providing a security system for communication online connecti
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!