Question: ATM software Write a C program similar to the ones used in ATM machines. Essentially your program is to handle a person's savings and checking
ATM software
Write a C program similar to the ones used in ATM machines. Essentially your program is to handle a person's savings and checking accounts and should handle the following services:
Transfer from savings account to checking account
Transfer form checking account to savings account
Cash withdrawal from either account
Balance statements for both the accounts
Assume that the ATM machine recognizes a unique digit personal identification number PIN In your initial screen you are to first ask the user to type in hisher PIN as follows:
Welcome to Cal Poly's ATM
Please enter your PIN:
In response to this, the user has to enter a valid PIN. Assume that the only legal PIN is:
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 program must terminate.
If the entered PIN is a legal value, the main menu is to be displayed as follows:
Welcome To Cal Poly's ATM System
Transfer from checking account to savings account
Transfer from savings account to checking account
Savings account balance
Checking account balance
Withdraw Cash from either account
Exit
Please select option :
The following are some of the guidelines you should follow:
The main menu is to continue to be displayed until user selects
option 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 or Redisplay the menu if any number outside the range to is entered Hint: Use systemcls command from library to clear the screen
Withdrawl selection should ask wether 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 $
Any transfer is allowed only if it can be honored. For example, if the savings account balance is $ and the user requests to transfer $ from that savings account to the checking account an appropriate message such as
"Transasction 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.
Use functions to accomplish various tasks in the menu
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
