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

Thread: Help with my assignment.

  1. #1
    Member
    Join Date
    Oct 2012
    Posts
    61
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Help with my assignment.

    7. Design and implement a program called TotalNumbers.java to do the following:
    a. Prompts the user for their name to personalise the program;
    b. For 10 repetitions:
    i. Prompts the user for a number;
    ii. Add to a running total the numbers as they are entered;
    c. Then print out the final total at the end of the program.

    Above is a practice excerciset. I do realise no-one is my actual university teacher here, but if you were doing this exercise, what would you think? My question is

    In question 7c, it asks me to print out the final total at the end of the program. Does this mean to print out the 10 letters that the user has entered? or does it mean to add them then print them or something else?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Help with my assignment.

    I think it'd be this: add them then print them
    If you don't understand my answer, don't ignore it, ask a question.

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

    javapol (February 15th, 2013)

Similar Threads

  1. assignment help
    By suddenark in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 22nd, 2011, 11:11 PM
  2. assignment troubles polymorphism (guide for assignment included)
    By tdawg422 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2011, 10:01 AM
  3. Help with assignment
    By NPVinny in forum What's Wrong With My Code?
    Replies: 12
    Last Post: July 3rd, 2010, 05:31 PM
  4. please help me in my assignment :(
    By asdfg in forum What's Wrong With My Code?
    Replies: 5
    Last Post: May 18th, 2010, 07:59 AM
  5. Replies: 1
    Last Post: February 22nd, 2010, 08:20 AM