ATM machine simulator in Java

Bank of America has decided to replace their old, COBOL programmed, ATM machines. ACME Machines, your employer, has won the contract to create and deliver the 500 new ATM machines that Bank of America is going to need. At the lead programmer for ACME Machines, it is going to be your responsibility to create the software that the new ATM machine will use.

Bank of America has provided an overview of how their customers typically interact with an ATM machine. The bank customer enters their card into the machine and then types in their PIN. Bank security then verifies the card. The user selects the account to use (e.g. checking or savings). They then select an amount to withdrawal. Security verifies if the amount is available. The system then makes a decision as to if it is going to provide the money. The ATM provides the funds if possible. The ATM provides a receipt and returns the card to the user.

The Java program that you will create to control this ATM machine will start with a main method; however, then control will be transferred to a series of classes. Your program will contain at least the following classes and methods:

Class: ATMCard o (1) Variable: cardNum – holds a single ATM card’s ID number o (1) Variable: cardPIN – holds a single ATM card’s PIN number o (1) Variable: checking balance – amount of money in this person’s checking account o (1) Variable: savings balance – amount of money in this person’s savings account
Class: CardServices o (2) Method: initializeCardDB – creates an array containing ATM card numbers and PINs o (3) Method: insertCard – checks to see if the inserted card’s ID number is recognized o (6) Method: processCard – allows a user to request funds to withdraw o (12) Method: returnCard -returns the inserted card to the user
Class: PINo (4) Method: processPIN – compares the entered PIN to the PIN stored for this card o (5) Method: eatCard – if the PIN is incorrectly entered four times, this eats the card
Class: Securityo (9) Method: verityBalance – ensure that the card owner’s account has enough money o (10) Method: verifyMachineBalance– ensure that the ATM machine has enough money
Class: Account o (7) Method: select – determines if the user wants to withdraw from checking or savings
Class: Money o (8) Method: enterAmount – asks user to enter the amount that they want to withdraw
Class: Dispense o (11) Method: ones – dispenses ones o (11) Method fives – dispenses fives o (11) Method: tens – dispenses tens o (11) Method: twenty’s – dispenses twenty’s

You can assume that the ATM has been loaded with $1,000 in the following denominations:25 $20 bills, 25 $10 bills, 40 $5 bills, and 50 $1 bills. The ATM machine will attempt to provide every customer with money using the largest available bills assumingthat the machine still has enough money to fulfill the request – denominations don’t matter (i.e. it could use all $1 if that’s all that it had left)

The ATM machine should be programmed to display “Wrong PIN”, “Unrecognized card”, and “Out of money – cannot complete transaction”. The machine should “eat” the ATM card if the PIN is entered incorrectly 4 times.

The machine will be preloaded to recognize the following ATM cards:

Card Number
























Note that “-1” means that an account does not exist.

Once you’ve created your ATM machine, simulate the following transactions:

John Smith has both a checking and a savings account with BoA. He uses the ATM with card 123456789 and enters PIN 1111. He then requests $250 from his checking account.
Amy Rain has accounts at Citi Bank. When he inserts his ATM card into the BoA ATM machine with card ID number 347821905 the ATM machine should reject it.
Paul Logan has both a checking and a savings account with BoA. He uses the ATM with card 675849302 and enters PIN 0071. He then requests $500 from his checking account.
Tammy Placard only has a checking account. She then uses the ATM with card 135792468, but can’t remember her PIN. She tries 2000, 2090, 2077, and 2079.
Jill Holland only has a checking account with BoA. She uses the ATM with card 019283746 and enters PIN 6194. She then requests $300 from her checking account. This amount is refused because the machine does not have that much money. She then requests $250 and the machine completes the transaction.
Note: You are only permitted to use the Java commands that we have covered in class so far. Yes, there are many more, but no, you can’t use them in solving this homework!

→ Homework Assignment: Submit an electronic copy of your program via the Canvas tool.

Assignment Requirements:

You are required to submit an electronic copy of your program online via the Canvas tool.
Javadoc comments should be included for each class, method, and parameter. Before each method, put the following comment lines:
Method Name: xxx
Description: xxx
@param xxx
Your code must contain the following comment header:




// COP 2510 – Spring Semester, 2020


// Homework #1: The New ACME Machines ATM Machine


// (Your Name)


Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Benefits of our college essay writing service

  • 80+ disciplines

    Buy an essay in any subject you find difficult—we’ll have a specialist in it ready

  • 4-hour deadlines

    Ask for help with your most urgent short tasks—we can complete them in 4 hours!

  • Free revision

    Get your paper revised for free if it doesn’t meet your instructions.

  • 24/7 support

    Contact us anytime if you need help with your essay

  • Custom formatting

    APA, MLA, Chicago—we can use any formatting style you need.

  • Plagiarism check

    Get a paper that’s fully original and checked for plagiarism

What the numbers say?

  • 527
    writers active
  • 9.5 out of 10
    current average quality score
  • 98.40%
    of orders delivered on time