Home Answers Viewqa Java-Beginners Simple ATM Java Code...

 
 


amy lee
Simple ATM Java Code...
1 Answer(s)      2 years and 5 months ago
Posted in : Java Beginners

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









Related Pages:
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
code for ATM - Java Beginners
code for ATM  How to write code for ATM?  can you plz...) { Frame frame= new Frame("Simple ATM Example"); frame.add(new ATMPanel...://studentblock.com/courses/cs-101/atm-source-code-create-the-database/ Thanks 
ATM IN JAVA RMI - RMI
ATM IN JAVA RMI  How to write code for ATM using Java RMI
ATM Java Code - Java Beginners
ATM Java Code  how to write ATM code that requirement is 1)user can insert name, account number, current balance,transaction type, 2)if select transaction is money deposit, the value will be input and current balance
ATM
ATM  How do I create interfaces for banking system using Java
ATM Logic - Java Beginners
ATM Logic   Q-In an ATM program i want to print the receipt in which there is information of rupees note that come out from an ATM machine when user... Note: The ATM should check for particular rupee note whether it is available
atm machine code - Framework
atm machine code  plz send me the code of atm machine in c#.reply
atm code in servlet& jsp
atm code in servlet& jsp  pls send me the code of ATM project in servlet jsp . my requirements are first of all an user login window open then balance enquiry, withdraw of money, money transfer, then log out. pls send as early
atm java program - Java Interview Questions
atm java program  i need an atm system program java code that requires a user to enter his pin.then after entering the pin,it will ask again the user to select from 3 choices such as [1]Inquiry [2]Withdraw [3]Deposit.then if he
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
simple code - Java Beginners
simple code  to input a number and check wether it is prime or not and print its position in prime nuber series.  Hi friend, Code to help in solving the problem : import java.io.*; class PrimeNumber { public
write simple java code - Java Beginners
write simple java code  Write a program that creates a simple calculator .The user enters two numbers in the text fields, Number 1 and Number 2... the following code: import java.awt.*; import javax.swing.*; import
Simple FTP upload in Java
Simple FTP upload in Java  How to write a program for Simple FTP upload in Java? Any code example of Simple FTP upload in Java will be very helpful for me. Thanks
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
java spring simple application
java spring simple application  hai I have design a simple application in this I always found class not found exception. I am sendig code as follows please resolve this and send me.my directory structure is as follows Project
A simple question - Java Beginners
A simple question   Design a program to calculate either the square of a number or the square root of a number and display the results. output..., Code to help in solving the problem : import java.io.*; class Square
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
Simple Java Calculator - Java Beginners
Simple Java Calculator  Write a Java program to create simple.... Write proper code for making this calculator operational. Students..., Please visit the following link: http://www.roseindia.net/java/example/java
Simple Java Question - Java Beginners
Simple Java Question  [color=#0040BF] Dear All, I have a huge text file with name animal.txt, I have the following sample data: >id1 lion... [/color]  Hi friend, Plz give full source code where you having
Need someone to check and modify my simple code - Java Beginners
Need someone to check and modify my simple code   How to write a class that contains Variables that hold hourly rate of pay, number of hours...); } }   Hi Friend, You can use following code: import
Simple Form in Java
Simple Form in Java       This is a simple program of java awt package which constructs a look like a form by using various java component. In this section, you will learn how
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
How to write a simple java applet
How to write a simple java applet   Hi, how can i write a simple java applet, displaying text in specific colors and font style. For example... in green color Help me pls :(   Hi Friend, Try the following code
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
Java simple reference source - Java Beginners
Java simple reference source  Hi, please could you recommend me a Java simple reference source (on line or e-book) where I could quickly find... in detail and send me code. Thanks.   Dear friend
Simple Java class program - Java Beginners
Simple Java class program  Hello, Please help me, Write a simple... your code Thanx  Hi import java.util.*; import.... http://www.roseindia.net/java/example/java/util
Simple Java class program - Java Beginners
Simple Java class program  Hi sir, Please help me Write a simple... your code and handle any errors that may arise. Thank you Alexander ...(); } } -------------------------------------------- Read for more information. http://www.roseindia.net/java
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
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 pgm
simple pgm  a java program which uses super class
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
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 $.50 per attendee. Develop the program calculateTotalProfit that consumes
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  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
Simple Java Projects
Simple Java Projects  Hi, I am beginner in Java and trying to find Simple Java Projects to learn the different concepts on Java. Can anyone tell me where to get it? Thanks
A Simple program
A Simple program  Hi I have written the following code: class FirstRectangle{ public int rectArea(int l,int b){ int farea = l*b... required code: class FirstRectangle{ public int rectArea(int l,int b
simple - JDBC
simple  can we have update,delete,save button in one html or jsp form performing respective operation if yes, give me code respectively.  Hi Friend, Please visit the following link: http://www.roseindia.net/jsp
Simple Date example
Simple Date example       In this section we have presented a simple Date example... is the example code of SimpleDate.java as follows: SimpleDate.java import
simple calculator - Java Beginners
simple calculator  how can i create a simple calculator using java codes?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/calculator-in-swing.shtml Thanks
Simple Date Format Exception
Simple Date Format Exception       Simple Date Format Exception inherits from a package name... and normalization of date. Simple Date-format provides you to work on choosing any
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
Simple java applet
Simple java applet  Create a Java applet to display your address on the screen. Use different colors for background and text   Please visit the following link: Applet Examples
Java Code - MobileApplications
Java Code  A Simple J2ME Program to display output on the My Mobile
Java Code - MobileApplications
Java Code  A Simple J2ME program to display a message on the mobile
Java code - Java Beginners
Java code  Java program to calculate simple interest using... the following code: class Principal { double p; Principal(double p) { this.p=p...(); System.out.println("Simple Interest is: " + SI); } } class MethodOverriding { public
simple java search engine
simple java search engine  i have already downloaded the project simple java search engine.but i am not able to run it.can anyone help me.i have.... ABSTRACT Title : Simple Search Engine System Specification: The system on which
Very simple `Hello world' java program that prints HelloWorld
Hello World Java Simple Java Program for beginners (The HelloWorld.java) Java is powerful programming language and  it is used... code in the Java interpreter with this command:  java HelloWorld
How to run a simple jsp page in tomcat???
How to run a simple jsp page in tomcat???  i am trying to run a simple jsp page in tomcat,i am having web.xml also in WEB-INF folder. but it is giving me this error below....please help me to solve it. my jsp page code is given

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.