Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

ATM machine simulator in Java

ATM machine simulator in Java

ATM machine simulator in Java

Question Description

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

o

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

PIN

Checking

Savings

123456789

1111

$550

$1,275

135792468

2097

$90

-1

019283746

6194

$715

-1

675849302

0071

$790

$211

347821904

9871

$113

$78

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)

//

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20