Living Room Furniture
Home     TV cabinet   Living room chairs   Coffee Tables   Sectional Sofa   TV stands   tv cabinets doors   tv speaker stands   upholstered living room chairs   leather recliner chairs   leather sofa chair   antique tv cabinets   All Tags
Home ›› TV cabinet ›› ATM withdraw cash leaves calculation program - Java
   
 You may find:
TV stands Pickup ; wood 60 inch tv stands ; rta tv and audio stands
 Popular Tags:
wood, glass corner tv stands | dlp tv stands | init tv stands | oak lcd tv stands | sauder corner tv stands | stands for a tv | table top tv stands | tropical tv stands | walmart tv stands | tv cabinets antique style
ATM withdraw cash leaves calculation program - Java

Tag:jsp tv stands TV stands | 47 Viewers| java-servlet-jsp-web 2009-05-30 20:27:44 Publish:

31 May 2009

If you want to know what kind of program has been used by the ATM machine to calculate the cash leaves when you withdraw money. Here I'm giving the program (of course it is very simple stand alone program) how it looks like. You can extend based on your requirements.


import java.io.*;

class Withdraw
{
public static void main(String[] args) throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
if(n>15000)
System.out.println("ATM Cash Limit exceeds.");
else
{
if(n<1000)
System.out.println(n/100+" Hundreds");
else
{
int h=5;
int f=(n-500)/500;
//System.out.println(n-500+" "+(n-500)/500+" "+(n-500)%500);
h+=((n-500)%500)/100;
if(h>5){f=f+1; h=h-5;}
System.out.println(f+" Five Hundreds and "+h+" Hundreds");
}
}
}
}

Click here to check out other programs that I've developed.

Yahoo: TV stands ATM withdraw cash leaves calculation program - Java jsp tv stands
Google: jsp tv stands ATM withdraw cash leaves calculation program - Java TV stands
Post your comment about:    ATM withdraw cash leaves calculation program - Java

   

Topics: TV cabinet Living room chairs Coffee Tables Sectional Sofa
All Contents was collected by orders.If you have any problem please Click Me © 2008 Living Room Furniture Time 0.216319 S(s).Query 5.