Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the program in python 3 language and make sure it works correctly When you use an automated teller machine (ATM) with your bank

please write the program in python 3 language and make sure it works correctly

image text in transcribed

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. Assume that the user's PIN is "1234" and write a program that asks the user for the PIN no more than three times, and does the following: - If the user enters the right number, print a message saying, "Your PIN is correct", and end the program. - If the user enters a wrong number, print a message saying, "Your PIN is incorrect" and, if you have asked for the PIN less than three times, ask for it again. - If the user enters a wrong number three times, print a message saying "Your bank card is blocked" and end the program. Sample run1: Enter your pin number: 1254 Your PIN is incorrect, try again: 1234 Your PIN is correct Sample run2: Enter your pin number: 1285 Your PIN is incorrect, try again: 345 Your PIN is incorrect, try again: 6784 Your bank card is blocked

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

3.1 Why is nominal GDP lower than real GDP?

Answered: 1 week ago

Question

7. List behaviors to improve effective leadership in meetings

Answered: 1 week ago

Question

6. Explain the six-step group decision process

Answered: 1 week ago