Results 1 to 3 of 3

Thread: Deposit Money

  1. #1
    spyxdaxworld is offline Member
    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Default Deposit Money

    I am trying to create simple java console application that will ask user to deposit money. Here how it should look:

    Please enter 10 TWENTY dollar____
    Please enter 10 TEN dollar_____
    Please enter 10 FIVE dollar____
    Please enter 10 ONE dollar____

    Amount Deposited: _____

    Below is the code i am trying to work with, but i dont know how to start..Please help thank you..

    Java Code:
    import java.util.Hashtable;
    import com.widgetbank.[url]www.Denomination;[/url]
    
    
    public class MainDeposit {
    
    	/**
    	 * @param args
    	 */
    	
    	public static void main (String[] args) {
    		// TODO Auto-generated method stub
    		
    		 Hashtable<Denomination, Integer> numbers = new Hashtable<Denomination, Integer>();
    		 numbers.put(Denomination.TWENTY, 10 );
    		 numbers.put(Denomination.TEN, 10);
    		 numbers.put(Denomination.FIVE,10 );
    		 numbers.put(Denomination.ONE,10);
    	    
    		}
    	
    		}
    Last edited by spyxdaxworld; 10-26-2012 at 06:13 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Deposit Money

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

Similar Threads

  1. Replies: 12
    Last Post: 08-04-2012, 10:35 PM
  2. program ,deposit of an amount of money in a bank
    By aou in forum Advanced Java
    Replies: 1
    Last Post: 08-03-2012, 10:41 PM
  3. Replies: 4
    Last Post: 04-20-2011, 01:17 AM
  4. get money now.. if you could...?
    By CS Geek in forum Advanced Java
    Replies: 1
    Last Post: 11-09-2009, 02:52 AM
  5. Work & Earn money from home, use rebate lower price save money $$$
    By arturmoniswork in forum Reviews / Advertising
    Replies: 0
    Last Post: 12-30-2008, 06:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •