Forums Register Login

Eclipse Project - Advice

+Pie Number of slices to send: Send
Hi folks. New member, first post. I've just began programming for the first time 2 months ago and find it very difficult. The introductory class I am taking uses Eclipse and I've recently been given my first project.

The idea is to build an application that will ask a user to input a sequence of 8 letters (random sequence of vowels or consonants), then use a dictionary to find and display the longest word using the letters provided.

I have, with a lot of help from my tutor, come up with the following so far but am not sure what I should be thinking of doing next. I am not looking for straightforward answers but would greatly appreciate any advice on what I should be considering to complete the code. Thanks.


+Pie Number of slices to send: Send
Welcome to the Ranch

1. Please use code tags while posting the code
+Pie Number of slices to send: Send
Your code doesn't follow conventions. [No indentation, class name starts with lowercase letter]. Please read post on coding conventions here

The idea is to build an application that will ask a user to input a sequence of 8 letters (random sequence of vowels or consonants), then use a dictionary to find and display the longest word using the letters provided.


I would suggest you to keep the code aside for a moment and to start thinking about the problem.

If i divide the problem

Part 1:
How to read user input characters?Do we intend to read exactly 8 characters? Do we use array (or what data structure) to store those characters? Any input validations?

Part 2:
Do we have to construct dictionary? or is it supplied with problem? If we have to construct the dictionary, what are the specs?

Part 3: [Core logic]
How do we compare Part 1 and part 2 and output longest word?

I hope this will help you to get started.

He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 769 times.
Similar Threads
java beginner needs help!
Performance of Java Object Referece
Recursion
Please help, java program terminating unexpectedly without reason
print random letters(LinkedList)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:38:39.