Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26

Thread: Home work

  1. #21
    yanakap is offline Member
    Join Date
    May 2011
    Posts
    11
    Rep Power
    0

    Default

    Quote Originally Posted by mine0926 View Post
    Your code is working. The only problem is you do not have code to output/print the result.

    try to put this code after String lastName = scanner.next();
    Java Code:
    System.out.println("Firstname: " + firstName);
    System.out.println("Lastname: " + lastName);
    Thank you for helping me. Yes it works but I get output only first name and last name. How can I get total score? I put
    System.out.printf("%.2f %n", scores);
    but it doesn’t work. May be wrong place?

  2. #22
    yanakap is offline Member
    Join Date
    May 2011
    Posts
    11
    Rep Power
    0

    Default

    Thank you. I did it. Everything is work.
    I forgot about output it )))):p

  3. #23
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    4

    Default

    Glad you make it work.
    Please mark this thread solved.
    :)

  4. #24
    yanakap is offline Member
    Join Date
    May 2011
    Posts
    11
    Rep Power
    0

    Default

    I found my misstake.
    I just missed output First name and Last name and total score.

    System.out.print(firstName + " ");
    System.out.print(lastName + ":");


    System.out.printf(" %.2f ", total);
    System.out.println();



    Thank you.

  5. #25
    Toll's Avatar
    Toll is offline Senior Member
    Join Date
    May 2011
    Location
    Sweden
    Posts
    382
    Rep Power
    3

    Default

    You can mark the thread as solved under Thread Tools at the top. You'll be redirected to a missing page, but it'll be marked as solved nonetheless.

  6. #26
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

Page 2 of 2 FirstFirst 12

Similar Threads

  1. I want to work from home
    By silverglade in forum New To Java
    Replies: 15
    Last Post: 04-18-2011, 02:29 PM
  2. home work help
    By vibaviattigala in forum New To Java
    Replies: 2
    Last Post: 11-30-2010, 05:36 AM
  3. Home work help due midnight
    By alucard in forum New To Java
    Replies: 2
    Last Post: 03-29-2010, 04:09 AM
  4. Senior Java Desktop Developer Work From Home
    By carino in forum Jobs Offered
    Replies: 5
    Last Post: 08-11-2009, 02:45 PM

Posting Permissions

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