ATM
Submitted by maverickosama on Saturday, June 5, 2010 - 06:30.
Language
ATM machine programmed in java... there is a admin menu for creating,deleting,updating,searching a user account..... and there is a user menu where he/she can withdraw,deposit,transfer cash etc... all the data is stored using file handling.... i hope u like this....
www.bitsbyta.com
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Comments
K.B.C In java
Sir, with due respect,i am a class 10 icse student and badly need a kaun banega crorepati program written in java using simple methods like arrays.if possible life lines can also be included. i would be very grateful of u if you kindly write it. i trust u . thanks in advance
ATM PROJECT:
HI,
Cograts for your wow! work.
Is it posible for you to send me the full source codes.
my email address is [email protected]
Thankyou in advance.
import java.util.Scanner; …
import java.util.Scanner;
//create ATMExample class to implement the ATM functionality
public class ATM_Machine
{
//main method starts
public static void main(String args[] )
{
//declare and initialize balance, withdraw, and deposit
int balance = 0, withdraw, deposit;
//create scanner class object to get choice of user
Scanner sc = new Scanner(System.in);
while(true)
{
System.out.println("ATM Machine\n");
System.out.println("Choose 1 for Withdraw");
System.out.println("Choose 2 for Deposit");
System.out.println("Choose 3 for Check Balance");
System.out.println("Choose 4 for EXIT\n");
System.out.print("Choose the operation:");
//get choice from user
int choice = sc.nextInt();
switch(choice)
{
case 1:
System.out.print("Enter money to be withdrawn:");
//get the withdrawl money from user
withdraw = sc.nextInt();
//check whether the balance is greater than or equal to the withdrawal amount
if(balance >= withdraw)
{
//remove the withdrawl amount from the total balance
balance = balance - withdraw;
System.out.println("Please collect your money");
}
else
{
//show custom error message
System.out.println("Insufficient Balance");
}
System.out.println("");
break;
case 2:
System.out.print("Enter money to be deposited:");
//get deposite amount from te user
deposit = sc.nextInt();
//add the deposit amount to the total balanace
balance = balance + deposit;
System.out.println("Your Money has been successfully depsited");
System.out.println("");
break;
case 3:
//displaying the total balance of the user
System.out.println("Balance : "+balance);
System.out.println("");
break;
case 4:
//exit from the menu
System.exit(0);
}
}
}
}
ATM Java code
pls help me for this code because of my school project
Is it posible for you to send me the full source codes.
my email address is [email protected]
pls help me pls
Add new comment
- Add new comment
- 4290 views