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: please help me with this program, I dont have enough time to do it

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default please help me with this program, I dont have enough time to do it

    Write a class named measurement that holds info about the personís name and personís height (in centimeters). The class should have a constructor and any appropriate methods. Build the application class by creating an instance of the class and provide the inputs. The program should display the output as following:

    Notes: Use for loop to receive input from user and call insert() to pass inputs entered.


    Person #1:
    Name: Patty
    Height (in cm): 144

    Person #2:
    Name: Paul
    Height (in cm): 187

    Person #3:
    Name: Lorraine
    Height (in cm): 165

    Person #4:
    Name: John
    Height (in cm): 136
    ================================================== ========

    Sorting by Personís name or Personís height?
    1 Personís name
    2 Personís height
    Enter your choice: 2

    Choose selection:
    1 Bubble Sort (sorting in ascending order)
    2 Selection Sort (sorting in descending order)
    3 Insertion Sort (sorting in Odd-Even ascending order)
    Enter your choice: 1

    Sorting in Ascending order (Bubble Sort):

    Name: John Height (in cm): 136
    Name: Patty Height (in cm): 144
    Name: Lorraine Height (in cm): 165
    Name: Paul Height (in cm): 187

    Continue?(y/n) : y

    Choose selection:
    1 Bubble Sort (sorting in ascending order)
    2 Selection Sort (sorting in descending order)
    3 Insertion Sort (sorting in Odd-Even order)
    Enter your choice: 3


    Choose selection:
    1 Odd-Even Ascending
    2 Odd-Even Descending
    Enter your choice: 2

    Odd-Even Descending Order:
    (Odd) Patty(144cm) , John (136cm)
    (Even)Paul(187cm) , Lorraine(165cm)

    Continue?(y/n) : n

    Highest of Height: Name: Paul , Height:187
    Lowest of Height: Name: John , Height: 136
    Average of Height: 158.0


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 286 Times in 225 Posts
    Blog Entries
    4

    Default Re: please help me with this program, I dont have enough time to do it

    We do not have the time or desire to do your homework assignment for you either.
    The fact that you have no time to do it is no one elses fault but your own.

    Programming Forums are not a place to ask for people to do your assignment. People are here for fun, on a voluntary basis. I personally will only give time to people who show they have made an effort. Especially when it comes to homework.

    Please attempt to do this work yourself and post back when you are stuck. If you show you have tried to do it yourself, I will be happy to help you move forward.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

Similar Threads

  1. I dont see why this program is not doing what it is supposed to
    By Leprechaun_hunter in forum What's Wrong With My Code?
    Replies: 5
    Last Post: April 12th, 2011, 08:24 AM
  2. i'm getting this error, dont know why? please help
    By amr in forum What's Wrong With My Code?
    Replies: 4
    Last Post: December 17th, 2010, 05:14 AM
  3. I dont get it....please help
    By DestinyChick1225 in forum What's Wrong With My Code?
    Replies: 12
    Last Post: June 30th, 2010, 03:16 AM
  4. how to make a program take time...
    By DLH112 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 10th, 2010, 06:09 PM
  5. Dont laugh at me
    By Neblin in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 3rd, 2009, 08:18 AM