Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program for an ATM machine which has the following services: 1- Withdraw Money 2- Deposit Money 3- Printing the Current Balance The program

image text in transcribed
Write a program for an ATM machine which has the following services: 1- Withdraw Money 2- Deposit Money 3- Printing the Current Balance The program of the ATM machine should have the following sequence The user should be asked to enter a password. If the password entered is correct, the options will be printed. Otherwise, print a message informing the user that the password is wrong and give him/her another chance to enter the password. If the password is correct move to the options, if not, give the user one more chance to enter the password. If the password is wrong end the program otherwise print the potions. The user is asked to enter the letter (in small or capital letter) of the service. In case the user chooses to withdraw, then the program should ask the user about the amount that is going to be withdrawn and to update the balance (without printing it). In case the user chooses to deposit, then the program should ask the user about the amount that is going to be deposited and to update the balance (without printing In case the user chooses to print the current balance, then a message should be printed informing him/her about their current balance Once the deposit or withdraw operation is done, the user should be asked if he/she wants to print the current balance. In case the user chooses to print the current balance, then it should be printed. Otherwise, end the program. Assumptions: Assume the initial balance of the user is 20,000 dhs. Assume the password of the user is 5432. Notes: Each student should submit a version of the project (individual project). The program must be user friendly. Messages and options must be clear for the user Have the program in a logical order Make sure anything printed is in a good format. Comment your code Have a welcoming message, an ending message, etc - -Extra features will receive bonus. Submission A demonstration will take place during the lab on the 9th of November You must submit your code along with one screenshot (for any of the options) on LMS (the same way you submit your labs)

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_2

Step: 3

blur-text-image_3

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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

What are the five components of total rewards?

Answered: 1 week ago