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

Thread: cant do it...i have exam tommorow...plezz help me...

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    6
    My Mood
    Cheerful
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Lightbulb cant do it...i have exam tommorow...plezz help me...

    write a program to read a list of employee salary. display the total number of salary and the number of salary grades as follow: 1000-2000 is an A, 2001-3000 is a B, 3001-4000 is a C,4001-5000 is a D, and 5001-6000 is an E.use a 999 as a sentinel value to indicate the end of the input. (the 999 value is used only to end the loop, so do not use it in the calculations). the output must be follow:

    Enter a salary (enter 999 to stop key in data) = 1500.50
    Enter a salary (enter 999 to stop key in data) = 2400.5
    Enter a salary(enter 999 to stop key in data) = 3200.50
    Enter a salary (enter 999 to stop key in data) = 4500.50
    Enter a salary (enter 999 to stop key in data) = 5500.00
    Enter a salary (enter 999 to stop key in data) = 5000.00
    Enter a salary (enter 999 to stop key in data) = 3000.00
    Enter a salary (enter 999 to stop key in data) = 999
    total number of salary = 7
    Number of salary grade A = 1
    Number of salary grade B = 2
    Number of salary grade C = 1
    Number of salary grade D = 2
    Number of salary grade E = 1

    *help me to do a code


  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: cant do it...i have exam tommorow...plezz help me...

    Sorry, I have no way to set the clock back for a long enough time for you to be able to write this program.
    If you still want to write the program, post the code that you currently have in the What's Wrong With My Code? section and add some questions about the problems you are having with the program.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jan 2013
    Posts
    6
    My Mood
    Cheerful
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: cant do it...i have exam tommorow...plezz help me...

    thanxx anywayy

  4. #4
    Junior Member
    Join Date
    Jan 2013
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: cant do it...i have exam tommorow...plezz help me...

    i will do it for tommorrow

Similar Threads

  1. java programming exam
    By JamesFlowers14 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 9th, 2012, 12:20 AM
  2. Java exam paper
    By javanoobie in forum Java Theory & Questions
    Replies: 0
    Last Post: May 3rd, 2012, 12:24 PM
  3. Java Final Exam - Help needed
    By JavaBeginner12 in forum Java Theory & Questions
    Replies: 1
    Last Post: March 16th, 2012, 07:54 PM
  4. Good examples for exam practice?
    By Twoacross in forum Java Theory & Questions
    Replies: 2
    Last Post: December 28th, 2011, 01:48 AM
  5. 50 SCJP Mock Exam Questions with Answers
    By JavaPF in forum The Cafe
    Replies: 3
    Last Post: July 6th, 2010, 11:10 AM