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: Word Guess

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Word Guess

    Develop an application that allow the user to guess a secret word. The application should save the list of words below and when run, choose one word at random as the secret word.

    The list of word is: house, car, apple, college

    Once the secret word is chosen, the application should output the length of the word to the user.
    The application should then allow the user to guess the word one letter at a time.
    The application should allow the user to have 6 guesses. After each guess, the application should output how many times the chosen letter appears in the word.

    The application should accept input from the user in either uppercase or lowercase but it should not be case sensitive. i.e., 'a' is the same guess as 'A'.

    The application should make use of instantiable classes.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Word Guess

    Did you have a question, or did you just want to dump your homework here?

    Please see the link in my signature on asking questions the smart way before you post again.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. guess program problems.
    By shin777 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 31st, 2013, 07:15 AM
  2. Replies: 7
    Last Post: March 29th, 2013, 07:38 AM
  3. Word Guess program with a Null Pointer Exception
    By Wallatrix in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 11th, 2013, 02:42 AM
  4. Replies: 5
    Last Post: August 20th, 2012, 01:01 AM
  5. Reading a text file word by word
    By dylanka in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: October 21st, 2011, 02:06 PM