(HOMEWORK) Programming I (I am So Lost)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zebrasalad
    New Member
    • Mar 2008
    • 1

    (HOMEWORK) Programming I (I am So Lost)

    Hey can someone please help me with this. If somebody can help me with the code of these it would be greatly appreciated.

    Here is my assignment problems:

    -1. Write a program that asks the user for three names. It then prints the names out
    in order according to the following rule. The name with the most amount of
    characters comes first, with the least comes last, and the remaining one comes
    second.

    -2. Write a program that asks the user for his first and last name, all on one line. The
    program then displays the users last name, followed by his/her first name.

    -3. Write a program that randomly selects a letter from the alphabet. The program
    then checks to see if the letter is a vowel or a consonant.

    -4. Write a program that asks the user for three words. The program then displays
    the words in alphabetical order.

    -5. Write an application that creates and prints a random phone number of the form
    XXX-XXX-XXXX. Include the dashes in the output. Do not let the three digits
    contain an 8 or a 9.

    Thanks.
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

    Then when you are ready post a new question in this thread.

    MODERATOR

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Hints:
      1. For question involving string, consult the API for string: java.lang.Strin g
      2. For questions involving randomness, consult the API for Random: java.util.Rando m

      Comment

      Working...