Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default I need a java program for change denominations

    Write a program that asks the user for a money amount. The amount should be specified in dollars and cents separated by a decimal point as you would normally write it. The program should then print out the change break down.

    Use denominations of Twenties, Tens, ..., Ones, Quarters, Dimes, Nickels, Pennies. Consider making the program easily adaptable to add new denominations, like Fifties and Hundreds.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Once again, beer please.

    This is not a forum for you to dump your homework on us. We are all willing to help you out, but you will be doing the majority of the work.

  3. #3
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default

    Yeah and I need help.
    And it's not homework.
    I am playing around with java.

  4. #4
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default

    also refer to what I said on my other post.
    I am not even in a computer science class yet.

  5. #5
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Neither am I, whats your point? I don't want to be overly rude, but you are not going to learn if we make the code for you, try it yourself and post back here with your code/errors/struggles/etc

  6. #6
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

    Default

    If you genuinely want help then in future ask a specific question. Then we can provide a specific answer.

    If user enters a value of 10.45 then what you can do is convert that to an int with a value of 1045. Then its just a matter of dividing and modding by all the denominations.

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by TheSweetHelloKitty View Post
    Yeah and I need help.
    And it's not homework.
    I am playing around with java.
    Yeah, right; you're not fooling anyone. I'm locking this post and any other where you ask for someone else to do your "non"-homework.

Similar Threads

  1. notify a DB change in java
    By amanda in forum Advanced Java
    Replies: 1
    Last Post: 12-28-2010, 01:46 PM
  2. How to A, B C, D, E,F change to 5,4,3,2,1,0 java
    By theseven in forum New To Java
    Replies: 1
    Last Post: 02-12-2010, 02:48 PM
  3. [Help] Change to give back program
    By Duranx in forum New To Java
    Replies: 5
    Last Post: 02-06-2010, 04:52 AM
  4. Change the color in my program
    By carl in forum New To Java
    Replies: 5
    Last Post: 04-03-2009, 01:20 PM
  5. Giving Change: A Rudimentary Program (Questions)
    By carlodelmundo in forum New To Java
    Replies: 8
    Last Post: 08-14-2008, 12:33 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
  •