Simple ATM Java Code...

Simple ATM Java Code...

You are required to write a Graphical User Interface that simulates an ATM by building on the program you wrote for the midterm exam. Specifically, you will be reading customer information into an array list, following which your ATM becomes operational for use by your customers for checking account withdrawal, deposit, and view current balance.
You will be implementing multiple classes. The super class will consist of the name and bank account number (which is assigned sequentially starting at 1001) data members, while the checking account sub class has the PIN and current balance data members. You will use methods within the sub class to withdraw, deposit, or provide the current balance.

Your program must perform the following:

  1. Read customer information from an input text file into an array list of the above class type.
  2. Output the customer information including the sequential bank account number.
  3. Display option for the ATM administrator to open the ATM for business or exit the program.
  4. Exit the program if the second option is selected.
  5. An ATM thatā??s open for business must do the following:

a. Display your Bankā??s name and request the customer to enter their PIN

b. Match the PIN with the correct customer and welcome customer by name.

c. Display a menu that provides options to withdraw, deposit, view current balance, or exit the ATM. You may implement a fast cash option for $10, $20, $50, and $100 for bonus points.

d. If the withdrawal option is selected, request customer to enter the withdrawal amount, ensure the amount does not exceed the current balance, prompt the customer to take the specified amount, display the latest balance, followed by the menu in step 5c.

e. If the deposit option is selected, request customer to enter the deposit amount, echo the deposit amount on the screen, and display the latest balance, followed by the menu in step 5c.

f. Display current balance when selected followed by the menu in step 5c.

g. When customer exits, display the welcome screen in step 5a.

Input text file data (customer name, PIN, and current balance):

Bugs Bunny Jr. 1234 1001.01

Dr. Wiley Coyote 2345 1002.02

Taco Speedy Gonzales 3456 1003.03

Billy the Goat 4567 1004.04

Porky Pig 5678 1005.05

(you may rearrange the data)

This should be completed with only 3 classes (Main--superclass, Bank--subclass, and checking--subclass). This is to ensure that the program is simplified. It's a college assignment and needs to be written with the least amount of code to make it functional. All entries/transactions must be through the GUI and not the keyboard. Use a textarea component for all output and to echo the input if any.

View Answers

December 15, 2010 at 7:29 AM

the gui layout should look similar to this please: http://i56.tinypic.com/2d82eqx.jpg

Ads









Related Tutorials/Questions & Answers:
Simple ATM Java Code...
Simple ATM Java Code...  You are required to write a Graphical User Interface that simulates an ATM by building on the program you wrote... list, following which your ATM becomes operational for use by your customers
ATM
ATM  How do I create interfaces for banking system using Java
Advertisements
ATM machine in c#
ATM machine in c#  i am looking for a code that will be able to create an account and be able to log-in to the atm machine
Run a simple EJB code
Run a simple EJB code  I found the code this. However, as I have no idea with EJB, I can't understand how to run it. Can anybody help me by giving... is acceptable). Thanks.   Please visit the following link: Simple EJB
Run a simple EJB code
Run a simple EJB code  I found the code this. However, as I have no idea with EJB, I can't understand how to run it. Can anybody help me by giving... is acceptable). Thanks.   Please visit the following link: Simple EJB
Need simple java code to start and stop the remote windows service.
Need simple java code to start and stop the remote windows service.  Hi, I Need simple java code to start and stop the remote windows service. Example:There are two servers 1) Server A and 2) Server B. If a notepad.exe file
ModuleNotFoundError: No module named 'atm'
ModuleNotFoundError: No module named 'atm'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'atm' How to remove the ModuleNotFoundError: No module named 'atm' error
simple code for XML database in JS
simple code for XML database in JS  Sir , i want a code in javascript for XML database to store details (username and password entered by user during registration process (login process)). please send me a code . Thank you
simple ajax Request and Response code...
simple ajax Request and Response code...  var request=null; if (window.XMLHttpRequest) { request = new XMLHttpRequest(); } else if (window.ActiveXObject) { request = new ActiveXObject("Microsoft.XMLHTTP"); } if(request
Insert Image into Mysql Database through Simple Java Code
Insert Image into Mysql Database through Simple Java Code... simple java code that how save image into mysql database. Before running this java code you need to create data base and table to save image in same database
code for a simple java program which performs basic arithmetic operation addition,subtraction,multiplication,division........
code for a simple java program which performs basic arithmetic operation addition,subtraction,multiplication,division........  code for a simple java program which performs basic arithmetic operation addition,subtraction
query in simple code..i had described all...........
query in simple code..i had described all...........  SAME HERE IF YOU GET THIS PROBLEM SOLVED THEN PLEASE REPLY......... MY ONE JAVA FILE IS: abstract class A { abstract void callmetoo() { System.out.println("anoop
simple source code for tower of hanoi in android
simple source code for tower of hanoi in android  may I get a source code for tower of hanoi game in android pls.If possible help me as much as possible
Can anybody help me with this simple MySql code
Can anybody help me with this simple MySql code  select c.countryid, r.bp, r.sp, c.country, t.timee from rate as r, countryloc as c, todaysrate as t where r.countryid=t.countryid and t.countryid=c.country this is waht i gt whn
JAVA code For
JAVA code For   JAVA code For "Traffic signals Identification for vehicles
JAVA CODE
JAVA CODE  JAVA SOURCE CODE TO BLOCK A PARTICULAR WEB SITES(SOCIAL WEB SITE
java code
java code  write a java code to convert hindi to english using arrays
java code
java code  need java code for chart or graph which compare the performance of aprior algorithm and coherent rule algorithm.plz any one help me out
java code
java code  write a java code for finding a string in partiular position in a delimited text file and replace the word with the values given by user and write the file in new location
java code
java code  sir how to merge the cells in excel using java code please help me and also how to make the text placed in the cell to be center
java code
java code  sir how to merge the cells in excel using java code please help me and also how to make the text placed in the cell to be center
Java code
Java code  An old-style movie theater has a simple profit program. Each customer pays $5 per ticket. Every performance costs the theater $20, plus...; Hi Friend, Try the following code: import java.util.*; import
java code
java code  I need the java code that would output the following: HARDWARE ITEMS CODE DESCRIPTION UNIT PRICE K16 Wood screws,brass,20mm $7.75 D24 Wood glue,clear,1 liter $5.50 M93
Java code
Java code   Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes
java code
java code  Develop a program that accepts an initial amount of money (called the principal), a simple annual interest rate, and a number of months will compute the balance at the end of that time. Assume that no additional
java code
java code  hello sir, i want to devlop one simple app in java,c,c++ which is made without using database and awt system is multiplex cinema ticket booking. it define/add available screens & current movies.screen should
java code
java code  how to extract html tags using java
java code
java code  int g() { System.out.println("Inside method g"); int h() { System.out.println("Inside method h"); } } Find the error in the following... cannot define a method inside another method. Anyways, we have modified your code
Java code
Java code  Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any... the following code: import java.util.*; import java.text.*; class NumberProgram
java code
java code  what is meaning bufferedreader
java code
java code  what is meaning bufferedreader

Ads