• Post Reply Bookmark Topic Watch Topic
  • New Topic

Eclipse Project - Advice  RSS feed

 
Norman Fletcher
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
Suresh Sajja
Ranch Hand
Posts: 34
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

1. Please use code tags while posting the code
 
Suresh Sajja
Ranch Hand
Posts: 34
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!