Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: HW BEGGINER HELP !

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HW BEGGINER HELP !




    Write an application that prompts for and reads a double value representing a monetary amount.Then determine the fewest number of each bill and coin needed to represent that amount.Then determine the fewest number of each bill and coin needed to represent that amount,starting with the highest (assume that a ten dollar bill is the maximum size need).For example , if tbhe value entered is 47.63 (forty-seven dollars and sixty-three cents).then the program should print the equivalent amount as :

    4 ten dollar bills
    1 five dollar bills
    2 one dollar bills
    2 quarters
    1 dime
    0 nickles
    3 pennies



    Thank you,would really appreciate your SMART help.......


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,332
    Thanks
    181
    Thanked 829 Times in 772 Posts
    Blog Entries
    5

    Default Re: HW BEGGINER HELP !

    What did you try? Where are you stuck? We are not a homework service, but we will try and help if you actually show an effort.

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HW BEGGINER HELP !

    yes , i know i understand

    but it was my first day college

    and the processor said that solves says gets a 5 % bonus

    i only know the basics


    public static void main (String args[]) {

    System.out.println("Hello Java Programmers");

    \\ THIS IS ALL I KNOW
    \\YOUR HELP WOULD BE A BLESS FOR US

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,332
    Thanks
    181
    Thanked 829 Times in 772 Posts
    Blog Entries
    5

    Default Re: HW BEGGINER HELP !

    Break the problem down...how would you do this by hand? Write it out on paper...that's your logic/algorithm. Then convert that to code.
    Suggested reading: How to Program (stuck on homework? READ THIS BEFORE POSTING)

  5. #5
    Junior Member
    Join Date
    Apr 2014
    Posts
    24
    My Mood
    Lonely
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: HW BEGGINER HELP !

    So i'm trying to help and not give the answer!
    Basicly im just giving tips!
    also just try to get the code you need from internet! NOT FROM ME ;P

    47,92

    Take the first number (4)
    make that into your 10 dollarbills
    int TenDollarBills = bla bla

    then looking at the 7.
    you can do a while loop
    while (SecondDigit >= 5)
    FiveDollarBills - 5


    SecondDigit = Dollars

    This is how I would confront it! Good luck and hope you get the 5% extra!

  6. #6
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,332
    Thanks
    181
    Thanked 829 Times in 772 Posts
    Blog Entries
    5

    Default Re: HW BEGGINER HELP !

    @Niels van Ee, please keep in mind dates the dates on threads - this one in particular is around a 1 1/2 years old, which is an eternity in internet and forum time (and in homework time, way too late to get the '5% extra')
    Locking

Similar Threads

  1. Begginer : help would be much appreciated for this exercice!
    By linus101 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 20th, 2012, 05:31 PM
  2. Begginer Java - Bug in my code?
    By rk2010 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 7th, 2012, 07:12 AM
  3. help im a begginer
    By ivankov2 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 24th, 2011, 07:33 AM
  4. begginer wondering why his guessing game won't work
    By Ligawulf in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 7th, 2010, 11:22 PM
  5. Any ideas for begginer?
    By SwEeTAcTioN in forum Java Theory & Questions
    Replies: 11
    Last Post: October 27th, 2009, 03:28 AM

Tags for this Thread