Question

Please do not copy other solution from the site as they never fully implement all the...

Please do not copy other solution from the site as they never fully implement all the listed guidelines below. Please write a shell script called atm.bash similar to the ones used in ATM machines. Essentially your script is to handle a person's savings and checking accounts and should handle the following services:

            Transfer from savings account to checking account

            Transfer from checking account to savings account

            Cash withdrawal from either account

            Balance statements for both the accounts

Assume that the ATM machine recognizes a unique 3-digit personal identification number (PIN). In your initial screen you are to first ask the user to type in his/her PIN as follows:

            *** Welcome to ATM ****

            Please enter your PIN:

In response to this, the user has to enter a valid PIN. Assume that the only legal PIN is: 123

If any number besides this PIN is entered, the screen is to be cleared and the same screen to be redisplayed. The user then gets a second chance to enter a valid PIN. If an illegal PIN is entered three consecutive, the following message:

            Too many illegal PINs. Try later again.

should appear on the screen and your script must terminate. If the entered PIN is a legal value, the main menu is to be displayed as follows:

            *** Welcome To ATM System ***

            (1) Transfer from checking account to savings account

            (2) Transfer from savings account to checking account

            (3) Savings account balance

            (4) Checking account balance

            (5) Withdraw Cash from either account

            (6) Exit

            ==> Please select option (1-6):

The following are some of the guidelines you should follow:

Guidelines

-- The main menu is to continue to be displayed until user selects option 6. At this point a message such as

            Thank you for using the ATM system.

   should appear and your program execution is to be terminated.

-- Users have to select options 1, 2, 3, 4, 5 or 6. Redisplay the menu if any number outside the range 1 to 6 is entered (Hint: Use the command clear after every menu option is complete and before displaying the menu again)

-- Write functions (if the shell allows for user defined functions) for displaying menu options, for transferring, and withdrawing from the accounts.

-- Withdrawal (selection 5) should ask whether the user wants to withdraw from checking account or saving account and should subtract the amount specified from the appropriate account.

-- Savings and checking accounts both have initial balance of $1000.00

-- Any transfer is allowed only if it can be honored. For example, if the savings account balance is $500.00 and the user requests to transfer $550.00 from that savings account to the checking account an appropriate message such as

            "Transaction not completed"

   should be displayed and the current balance of that account should be printed.

   The screen is to be cleared and the main menu to be displayed.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Please do not copy other solution from the site as they never fully implement all the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1- TigerOne Bank is a local bank that intends to install a new automated teller machine...

    1- TigerOne Bank is a local bank that intends to install a new automated teller machine (ATM) to allow its customers to perform basic financial transactions. Using the ATM machine users should be able to view their account balance, withdraw cash and deposit funds. The bank wants you to develop the software application that will be installed on the new ATM machines. The following are the requirements for the application:  Users are uniquely identified by an account number and...

  • Question 3.1 Draw the class diagram for the ATM program in Question 2.1. Please find attached...

    Question 3.1 Draw the class diagram for the ATM program in Question 2.1. Please find attached the scenario in the photos. this is for programming logic and design Scenario A local bank intends to install a new automated teller machine (ATM) to allow users (i.e., bank customers) to perform basic financial transactions (see below figure). Each user can have only one account at the bank. ATM users should be able to do the following; View their account balance. Withdraw cash...

  • use the following steps to develop a flow chart algorithm? Step Description Your Microsoft Excel Macro-Enabled...

    use the following steps to develop a flow chart algorithm? Step Description Your Microsoft Excel Macro-Enabled ExcelBank ATM Mark Step 1 Insert        ATM Card A ‘Welcome to ExcelBank ATM’ dialog box with a ‘Start’ button ½ Step 2 Select Language An Input Box / List Box / Check Box lists the 11 South African official languages (English is number 1) and requests the patron to enter his/her preferred language. The ATM will only proceed to the next step when...

  • Java project: A Bank Transaction System For A Regional Bank User Story A regional rural bank...

    Java project: A Bank Transaction System For A Regional Bank User Story A regional rural bank CEO wants to modernize banking experience for his customers by providing a computer solution for them to post the bank transactions in their savings and checking accounts from the comfort of their home. He has a vision of a system, which begins by displaying the starting balances for checking and savings account for a customer. The application first prompts the user to enter the...

  • I have to use java programs using netbeans. this course is introduction to java programming so...

    I have to use java programs using netbeans. this course is introduction to java programming so i have to write it in a simple way using till chapter 6 (arrays) you can use (loops , methods , arrays) You will implement a menu-based system for Hangman Game. Hangman is a popular game that allows one player to choose a word and another player to guess it one letter at a time. Implement your system to perform the following tasks: Design...

  • PYTHON The provided code in the ATM program is incomplete. Complete the run method of the...

    PYTHON The provided code in the ATM program is incomplete. Complete the run method of the ATM class. The program should display a message that the police will be called after a user has had three successive failures. The program should also shut down the bank when this happens. [comment]: <> (The ATM program allows a user an indefinite number of attempts to log in. Fix the program so that it displays a message that the police will be called...

  • Mini Project You are required to do this assignment on your own skills. No copying from...

    Mini Project You are required to do this assignment on your own skills. No copying from other students are not allowed. Write a menu driven Bash script using the guidelines given below. Some of the commands and syntax may not be covered in lectures. Please refer other sources to understand syntax and commands you need to complete this assignment. This program takes user input and to perform simple arithmetic operations such as addition, subtraction, multiplication and division of any two...

  • use java to design the application, the GUI should appear as in the picture shown ....

    use java to design the application, the GUI should appear as in the picture shown . Use java language: Requirements Document A local bank intends to install a new automated teller machine (ATM) to allow users (i.e., bank customers) to perform basic financial transactions. Each user can have only one account at the bank. ATM users should be able to view their account balance, withdraw cash (i.e., take money out of an account) and deposit funds (i.e., place money into...

  • write a code on .C file Problem Write a C program to implement a banking application...

    write a code on .C file Problem Write a C program to implement a banking application system. The program design must use a main and the below functions only. The program should use the below three text files that contain a set of lines. Sample data of these files are provided with the assessment. Note that you cannot use the library string.h to manipulate string variables. For the file operations and manipulations, you can use only the following functions: fopen(),...

  • please write C++ code to finish R0,R1,R2 Introduction In this assignment, you are going to develop...

    please write C++ code to finish R0,R1,R2 Introduction In this assignment, you are going to develop a "Schedule Book System that runs in the command line environment. The system stores the schedule of events input by user and allows users to add view or delete events. You can assume that the system can at most store 100 events Each group is required to write a Win32 Console Application program called ScheduleBook.cpp The requirements are listed below. RO When the program...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT