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 5 of 5

Thread: need help with my homework !

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default need help with my homework !

    im new to programming and im having lots of problems and my hw is due today and i just cant understand anything i been going over i am rethinking if this is the career i want to pursue but my instructor is not as good as i wish i learn more from youtube than him if anyone can make me the code for this problem i would appreciate it a lot



    An ISBN-10 (International Standard Book Number) consists of 10 digits:

    d subscript 1 d subscript 2 d subscript 3 d subscript 4 d subscript 5 d subscript 6 d subscript 7 d subscript 8 d subscript 9 d subscript 10

    The last digit d subscript 10 is a checksum, which is calculated from the other nine digits using the following formula:

    left parenthesis d subscript 1 cross times 1 plus d subscript 2 cross times 2 plus d subscript 3 cross times 3 plus d subscript 4 cross times 4 plus d subscript 5 cross times 5 plus d subscript 6 cross times 6 plus d subscript 7 cross times 7 plus d subscript 8 cross times 8 plus d subscript 9 cross times 9 right parenthesis % 11

    If the checksum is 10, the last digit is denoted as X according to ISBN conventions.
    Examples:
    Enter the first nine digits of an ISBN as an integer:013601267
    0136012671
    Enter the first nine digits of an ISBN as an integer:013031997
    013031997X


  2. #2
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: need help with my homework !

    Nobody here is going to write the code for you, but if you have already started on the exercise you can post your code here, as well as any questions you have, and perhaps somebody can help you make any progress.

  3. The Following User Says Thank You to Cornix For This Useful Post:

    bherre12 (September 22nd, 2014)

  4. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 697 Times in 679 Posts

    Default Re: need help with my homework !

    Here's a free period you can use to punctuate your sentences: .

    Let me know if you need more.

  5. The Following User Says Thank You to GregBrannon For This Useful Post:

    bherre12 (September 22nd, 2014)

  6. #4
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: need help with my homework !

    Thanks

  7. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 697 Times in 679 Posts

    Default Re: need help with my homework !

    Thread closed.

Similar Threads

  1. I need help with my homework
    By mazin757 in forum Java Theory & Questions
    Replies: 1
    Last Post: April 27th, 2014, 03:00 PM
  2. Help with my homework?
    By mshem in forum Java Theory & Questions
    Replies: 2
    Last Post: November 16th, 2012, 02:15 AM
  3. Homework help?
    By regi.dg in forum Object Oriented Programming
    Replies: 0
    Last Post: October 16th, 2012, 08:17 PM
  4. Homework help
    By hockey15 in forum Object Oriented Programming
    Replies: 3
    Last Post: September 23rd, 2012, 11:28 PM
  5. Homework
    By jdonaldson in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 9th, 2011, 10:09 AM