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
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Tutoracer is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download