Have a question?
Message sent Close

Object-Oriented Programming II With Java (CIS 4110)

Instructor
Sandra Watson
0
0 reviews
  • Description
  • Full Document
Blur-Preview

ATM – Java programming code for an ATM machine-money dispenser java

University

Baruch College CUNY

Course

Object-Oriented Programming II With Java (CIS 4110)

// ATM.java
// Represents an automated teller machine
public class ATM
{
private boolean userAuthenticated; // whether user is authenticated
private int currentAccountNumber; // current user’s account number
private Screen screen; // ATM’s screen
private Keypad keypad; // ATM’s keypad
private CashDispenser cashDispenser; // ATM’s cash dispenser
private DepositSlot depositSlot; // ATM’s deposit slot
private BankDatabase bankDatabase; // account information database
// constants corresponding to main menu options
private static final int BALANCE_INQUIRY = 1;
private static final int WITHDRAWAL = 2;
private static final int DEPOSIT = 3;
private static final int EXIT = 4;

PREVIEW

 

Object-Oriented Programming II With Java (CIS 4110)

NOTE: Please check the details before purchasing the document.

error: