Results 1 to 5 of 5
  1. #1
    SuaveCrouton is offline Member
    Join Date
    Feb 2016
    Posts
    4
    Rep Power
    0

    Default Help with an ant colony assignment

    I'm relatively new to Java and I surprised myself by completing the first lottery numbers assignment by myself and with good marks. However this second assignment is a massive jump in complexity and I am just absolutely lost, I'm not asking someone to do it for me but to break it down or at least give me a start, I'm confused on what classes I need to create, what methods and variable, etc.

    I've included the instructions in a PDF
    Attached Files Attached Files

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,007
    Rep Power
    34

    Default Re: Help with an ant colony assignment

    Please post anything here that you have questions about. Be sure to wrap any code in code tags.

    Do you have any specific java programming questions?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    SuaveCrouton is offline Member
    Join Date
    Feb 2016
    Posts
    4
    Rep Power
    0

    Default Re: Help with an ant colony assignment

    Quote Originally Posted by Norm View Post
    Please post anything here that you have questions about. Be sure to wrap any code in code tags.

    Do you have any specific java programming questions?
    What classes should I create for this project? And what would be the methods and variables? I don't have any code as I am completely stumped and that's why I need a little help starting off

  4. #4
    SuaveCrouton is offline Member
    Join Date
    Feb 2016
    Posts
    4
    Rep Power
    0

    Default Re: Help with an ant colony assignment

    I'm mainly confused and what classes I need to have and what should be contained in each class

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Help with an ant colony assignment

    I don't want to unreasonably justify your concerns but for a second program, this is relatively involved. Especially since
    she expects you to use if-then-else constructs which she claims you haven't had yet (for some folks, that concept is not intuitive).
    The initial conditions (user prompts) are pretty straight forward but the overall dynamics of the colony could be better explained.
    If I were doing this I would be making some assumptions and document them in the code.

    I also found the statement rather amusing:

    "Breed – Other than eating, queen ants don’t do much else but breed and have
    babies. You’ll want to be sure she has some entertainment, so you’ll need to
    ask your user if they want to breed their queen ant and, if so, how many
    times."





    Not certain if the entertainment was raising a brood or perhaps engaging in something a little more private.

    In any event I would recommend you discuss your issue(s) with her. That is part of the job of an instructor. Once you start writing
    the code, we can offer some debugging assistance.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. need help at assignment
    By ng min teck in forum New To Java
    Replies: 20
    Last Post: 08-01-2012, 05:57 PM
  2. Assignment
    By neowolf in forum New To Java
    Replies: 3
    Last Post: 07-15-2012, 06:20 PM
  3. Need help with this assignment
    By danakabeaver in forum New To Java
    Replies: 1
    Last Post: 04-28-2012, 12:26 AM
  4. Ant Colony Simulator
    By KevinWorkman in forum Reviews / Advertising
    Replies: 3
    Last Post: 12-14-2011, 09:19 PM
  5. Need help with assignment.
    By smileybear33 in forum New To Java
    Replies: 2
    Last Post: 04-26-2011, 04:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •