Intro to Python Programming: ATM Application When you use an automated teller machine (ATM) with your bank card, you need to use a personal identification number (PIN) to access your account. If a user fails more than three times when entering the PIN, the machine will block the card. Create the ATM Application. The application asks the user for the PIN no more than three times, and does the following: • If the user enters the right PIN, the application should ask the user to choose an account (checking or savings), and display its balance. • If the user enters a wrong PIN and, if the application has asked for the PIN less than three times, it should ask for it again. • If the user enters a wrong PIN three times, the application should print a message saying “Your bank card is blocked”. Assume that the user’s checking account balance is $1450.56 and his/her savings account balance is $10. Also assume the user’s PIN is “9554”.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter1: An Overview Of Computers And Programming Languages
Section: Chapter Questions
Problem 18SA: 18. Tom and Jerry opened a new lawn service. They provide three types of services: mowing,...
icon
Related questions
Question

Intro to Python Programming:

ATM Application

When you use an automated teller machine (ATM) with your bank card, you need
to use a personal identification number (PIN) to access your account. If a user fails
more than three times when entering the PIN, the machine will block the card.
Create the ATM Application.
The application asks the user for the PIN no more than three times, and does the
following:
• If the user enters the right PIN, the application should ask the user to choose an
account (checking or savings), and display its balance.
• If the user enters a wrong PIN and, if the application has asked for the PIN less
than three times, it should ask for it again.
• If the user enters a wrong PIN three times, the application should print a
message saying “Your bank card is blocked”.
Assume that the user’s checking account balance is $1450.56 and his/her savings
account balance is $10. Also assume the user’s PIN is “9554”.

SAMPLE RUN
Enter your PIN: 1353
Enter your PIN: 9555
Enter your PIN: 9553
Your bank card is blocked


Enter your PIN: 2355
Enter your PIN: 1345
Enter your PIN: 9554
Please enter c for checking, s for savings: c
Your checking balance is: $1450.56


Enter your PIN: 1532
Enter your PIN: 9554
Please enter c for checking, s for savings: s
Your savings balance is: $10.00

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning