Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Assignment1 {
- class ATM {
- const int SAVING_ACCOUNT = 1;
- const int DEBIT_CARD = 2;
- const int CREDIT_CARD = 3;
- const int LINE_OF_CREDIT = 4;
- static double savingsBalance = 901.45;
- static double debitCardBalance = 450;
- static double creditCardBalance = 1500;
- static double lineOfCreditBalance = 2000;
- static void Main();
- static void DisplayBalance(int whichAccount) {
- //Action: Current time and date is displayed along with the balance of the
- // account indicated by whichAccount.
- }
- static void WithdrawAmount(int whichAccount) {
- //Action: Provided that the withdrawal amount does not leave the account
- // with less than the minimum balance, the amount is withdrawn from the nominated
- // account indicated by whichAccount. If the account is either a Debit Card or
- // Credit Card account then a fee of $0.10 is deducted from the remaining balance
- // after a successful withdrawal has occurred. This may leave that account with
- // less than the minimum balance.
- }
- static void DispenseCash(double amount) {
- //Action: Displays a message to collect the amount consisting of the actual number
- // of notes of each denomination to be collected.
- }
- static void TransferAmount(int fromAccount, int toAccount) {
- //Action: Provided that the transfer amount does not leave the fromAccount with a
- // balance of less than $1, the amount is transferred to the nominated account
- // (toAccount) and a transfer fee of $1 is deducted from the fromAccount after the
- // transfer has occurred.
- }
- static void DisplayMenu() {
- string menu = "\n------------------------------------------------"
- + "\nWelcome to EziTeller ATM Machine"
- + "\n\tTransaction Menu:"
- + "\n\t================="
- + "\n\t1. Check Balance"
- + "\n\t2. Withdrawal"
- + "\n\t3. Transfer"
- + "\nPlease enter your option(1-3 or 0 to exit)";
- Console.Write(menu);
- }
- }
- }
Add Comment
Please, Sign In to add comment