Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


amy lee
Simple ATM Java Code...
1 Answer(s)      4 years and a month 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.


Advertisement
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 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
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 
Advertisements
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 IN JAVA RMI - RMI
ATM IN JAVA RMI  How to write code for ATM using Java RMI
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 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
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
ATM
ATM  How do I create interfaces for banking system using Java
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
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
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
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
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 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
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
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 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
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
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
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 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
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 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
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
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
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
 

 

 

DMCA.com