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 4 of 4

Thread: Practice Questions / Problems / Projects

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Location
    Canada
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Practice Questions / Problems / Projects

    Just wondering if anyone on the forums had some interesting programming problems/projects etc. that they did in a first year university or senior high school programming class.

    I've looked at all those problems on the internet(went through quite a few pages on google) and:
    1) They are beyond my programming level
    2) They're extremely boring
    3) I've already done it

    I'm trying to get a really good grasp on java before I head to uni next year, I'm already ahead since I've taken a high school course in it, but I would like to get even further ahead

    Any suggestions would be greatly appreciated!!!


  2. #2
    Member Faz's Avatar
    Join Date
    Mar 2010
    Posts
    97
    Thanks
    5
    Thanked 14 Times in 14 Posts

    Default Re: Practice Questions / Problems / Projects

    I rememeber someone suggesting Project Euler on this forum before so I checked it out, it's kind of cool if your decent at math.

    It basically contains math problems that are too tedious to do by hand so you need to write programmes to do them. I think Java isn't the best for this as you'll have to use the BigInteger/BigDoubles sometimes which are a bit annoying to work with whereas Python I believe works fairly well with these.

    Also these problems aren't built to be OO but you can resuse some classes for mulitple problems if your clever enough .

    Project Euler

    Can't really think of anything else. Maybe try to build a game, minesweeper or something.

  3. #3
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Practice Questions / Problems / Projects

    You can try Top Coder. It's algorithm intensive, though. The premise of the site is to come up with the most efficient algorithm possible given a story problem. Solving the problems are usually quite easy, but coming up with the most points is extremely difficult.

    You can also try re-creating your favorite board/card games in java. (note: AI can be sort of a pain for some games)

    Learning about algorithms/data structures is a very useful thing (albeit, quite tedious sometimes).

    Here are some very useful algorithms/data structures you could try implementing (just search for them on wikipedia) in no particular order:

    1. Merge Sort
    2. Quick Sort
    2a. Quick select
    3. Insertion Sort
    3a. Shell sort
    4. Heaps and Heap sort
    5. Hash tables
    6. Trees
    6a. Binary search trees
    6b. Tree traversal: Prefix (left-right-node)
    6c. Tree traversal: infix (left-node-right)
    6d. Tree traversal: in-order (node-left-right)
    7. Dijkstra's pathfinding algorithm
    7a. A* pathfinding (this website is better for learning A*: A* tutorial. Note: it does use C for their code, but the ideas are much easier to understand here)
    8. Queues
    8a. Priority queues
    9. Stacks
    11. Graphs

    I think that's most of the basic algorithms and data structures that you will find useful (there might be others)

  4. #4
    Junior Member
    Join Date
    May 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Practice Questions / Problems / Projects

    i have a problem if anyone would like to take a shot at.

    i have a set of answers to a test. i need to have a program calculate students answers against the answers. each correct answer is 2 points, each wrong anser is - 1 point, and no answer gets 0 points. the output needs to return the student ID, then the answers, next should be the test score, and last should be the test grade. grading scale of A thru F.i use netbeans to do this program. the ansers are true and false. T F F T F F T T T T F F T F T F T F T T. the first students ID and answers are ABC54301 T F T F T F T T T F T F T F F T T F T. the blank means he did not answer that question. please let me know what you think.
    Majic

Similar Threads

  1. J2EE and J2ME projects
    By vmwelt in forum Paid Java Projects
    Replies: 0
    Last Post: August 12th, 2009, 04:13 PM
  2. Java jobs and projects
    By eprojecthelp in forum Paid Java Projects
    Replies: 0
    Last Post: August 11th, 2009, 02:06 PM
  3. running a class from another projects, reflection
    By led1433 in forum Object Oriented Programming
    Replies: 7
    Last Post: July 29th, 2009, 01:47 PM
  4. Simple graphics practice on previous Java code
    By amrawad_85 in forum AWT / Java Swing
    Replies: 5
    Last Post: June 19th, 2009, 10:30 AM
  5. Database connection using NetBeans
    By jcc285 in forum Java IDEs
    Replies: 6
    Last Post: June 9th, 2009, 03:23 AM